s4:torture: avoid free of uninitialized variable in error case.
authorMichael Adam <obnox@samba.org>
Mon, 23 Mar 2015 00:52:32 +0000 (01:52 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 23 Mar 2015 15:04:19 +0000 (16:04 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source4/torture/smb2/session.c

index 2c06516615e4b8ef60354cd2dd9a320a379bc2c6..d60edafee6fc0f0b888c28a62d9808a5db0e899f 100644 (file)
@@ -71,7 +71,7 @@ bool test_session_reconnect1(struct torture_context *tctx, struct smb2_tree *tre
        struct smb2_create io1, io2;
        uint64_t previous_session_id;
        bool ret = true;
-       struct smb2_tree *tree2;
+       struct smb2_tree *tree2 = NULL;
        union smb_fileinfo qfinfo;
 
        /* Add some random component to the file name. */