From d2cf97aeba14a4d336fb57b01f19bd5a08dcb003 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 29 Nov 2007 13:24:54 -0800 Subject: Remove the explicit TALLOC_CTX * from cli_struct. Make us very explicit about how long a talloc ctx should last. Jeremy. (This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62) --- source3/libsmb/clientgen.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source3/libsmb/clientgen.c') diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index ee1a0fe3db..1a6fb8f93f 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -492,9 +492,6 @@ struct cli_state *cli_initialise(void) if (!cli->outbuf || !cli->inbuf) goto error; - if ((cli->mem_ctx = talloc_init("cli based talloc")) == NULL) - goto error; - memset(cli->outbuf, 0, cli->bufsize); memset(cli->inbuf, 0, cli->bufsize); @@ -605,11 +602,6 @@ void cli_shutdown(struct cli_state *cli) data_blob_free(&cli->secblob); data_blob_free(&cli->user_session_key); - if (cli->mem_ctx) { - talloc_destroy(cli->mem_ctx); - cli->mem_ctx = NULL; - } - if (cli->fd != -1) { close(cli->fd); } -- cgit