summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-05-03 11:49:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:52 -0500
commitd14e7803e7d024f7f95cbfce330e947ab66e3661 (patch)
treee44b484453bf93a56e3134dfb26b3057d53da5d2 /source3/libsmb
parentc74c6f722f29a39ed5677e7e571ad7a1b01a4f0b (diff)
downloadsamba-d14e7803e7d024f7f95cbfce330e947ab66e3661.tar.gz
samba-d14e7803e7d024f7f95cbfce330e947ab66e3661.tar.bz2
samba-d14e7803e7d024f7f95cbfce330e947ab66e3661.zip
r22644: Fix memleak.
Guenther (This used to be commit 65a2701f36439db37e8cd6067be69e8ffdc4615b)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index cc2a7304be..6991905c58 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -536,6 +536,7 @@ static BOOL cli_session_setup_blob(struct cli_state *cli, DATA_BLOB blob, DATA_B
int32 cur = 0;
DATA_BLOB send_blob = data_blob(NULL, 0);
int32 max_blob_size = 0;
+ DATA_BLOB receive_blob = data_blob(NULL, 0);
if (cli->max_xmit < BASE_SESSSETUP_BLOB_PACKET_SIZE + 1) {
DEBUG(0,("cli_session_setup_blob: cli->max_xmit too small "
@@ -575,7 +576,8 @@ static BOOL cli_session_setup_blob(struct cli_state *cli, DATA_BLOB blob, DATA_B
return False;
}
- cli_session_setup_blob_receive(cli);
+ receive_blob = cli_session_setup_blob_receive(cli);
+ data_blob_free(&receive_blob);
if (cli_is_error(cli) &&
!NT_STATUS_EQUAL( cli_get_nt_error(cli),