]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r22644: Fix memleak.
authorGünther Deschner <gd@samba.org>
Thu, 3 May 2007 11:49:32 +0000 (11:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:52 +0000 (12:19 -0500)
Guenther

source/libsmb/cliconnect.c

index cc2a7304be06cb5c2c42cec1dff258f3a7f96c0d..6991905c5875679ac7837cd2fb974fe44857c0db 100644 (file)
@@ -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),