From d14e7803e7d024f7f95cbfce330e947ab66e3661 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 3 May 2007 11:49:32 +0000 Subject: r22644: Fix memleak. Guenther (This used to be commit 65a2701f36439db37e8cd6067be69e8ffdc4615b) --- source3/libsmb/cliconnect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3') 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), -- cgit