torture:smb2: fix memory leak in connect test.
authorMichael Adam <obnox@samba.org>
Mon, 22 Feb 2016 22:23:13 +0000 (23:23 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 23 Feb 2016 00:41:17 +0000 (01:41 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
source4/torture/smb2/connect.c

index f68c34f350927b8673a7e57cf592c182541b410e..e3716be2113e853aaa6c5c4e7cab5c12e5eb73aa 100644 (file)
@@ -159,6 +159,7 @@ static NTSTATUS torture_smb2_createfile(struct smb2_tree *tree,
 
        status = smb2_create(tree, tmp_ctx, &io);
        if (!NT_STATUS_IS_OK(status)) {
+               TALLOC_FREE(tmp_ctx);
                return status;
        }