diff options
author | Tim Potter <tpot@samba.org> | 2005-06-10 07:49:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:54 -0500 |
commit | 302b4db004c51700dac7714d88ca27cdafe9612f (patch) | |
tree | a998f9141c1c2a6ec789dfedecaff9e35c040ce6 | |
parent | 5351ae59a0d7043f627fa066879cf7252451fbd9 (diff) | |
download | samba-302b4db004c51700dac7714d88ca27cdafe9612f.tar.gz samba-302b4db004c51700dac7714d88ca27cdafe9612f.tar.bz2 samba-302b4db004c51700dac7714d88ca27cdafe9612f.zip |
r7455: Remove some talloc contexts that aren't used.
(This used to be commit b0ad51f2ce6c3646d664773aaa32fe55172ad88b)
-rw-r--r-- | source4/libcli/cliconnect.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c index 53a97da168..ace9389ae8 100644 --- a/source4/libcli/cliconnect.c +++ b/source4/libcli/cliconnect.c @@ -67,14 +67,10 @@ NTSTATUS smbcli_session_setup(struct smbcli_state *cli, { struct smb_composite_sesssetup setup; NTSTATUS status; - TALLOC_CTX *mem_ctx; cli->session = smbcli_session_init(cli->transport, cli, True); if (!cli->session) return NT_STATUS_UNSUCCESSFUL; - mem_ctx = talloc_init("smbcli_session_setup"); - if (!mem_ctx) return NT_STATUS_NO_MEMORY; - setup.in.sesskey = cli->transport->negotiate.sesskey; setup.in.capabilities = cli->transport->negotiate.capabilities; setup.in.credentials = credentials; @@ -84,8 +80,6 @@ NTSTATUS smbcli_session_setup(struct smbcli_state *cli, cli->session->vuid = setup.out.vuid; - talloc_free(mem_ctx); - return status; } @@ -144,9 +138,6 @@ NTSTATUS smbcli_full_connection(TALLOC_CTX *parent_ctx, { struct smbcli_tree *tree; NTSTATUS status; - TALLOC_CTX *mem_ctx; - - mem_ctx = talloc_init("smbcli_full_connection"); *ret_cli = NULL; @@ -164,8 +155,6 @@ NTSTATUS smbcli_full_connection(TALLOC_CTX *parent_ctx, (*ret_cli)->transport = tree->session->transport; done: - talloc_free(mem_ctx); - return status; } |