s4:torture:smb2: talloc_free the right tree structure in secondary_tcon()
authorMichael Adam <obnox@samba.org>
Thu, 2 Feb 2012 12:38:08 +0000 (13:38 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 3 Feb 2012 10:10:30 +0000 (11:10 +0100)
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

source4/torture/smb2/notify.c

index b68ad55e967e4bcfc96af851bdf2f400e7e26aa1..070af0de9e3695fa195b4faf287215e17c733934 100644 (file)
@@ -1814,7 +1814,7 @@ static struct smb2_tree *secondary_tcon(struct smb2_tree *tree,
        tcon.smb2.in.path = talloc_asprintf(tctx, "\\\\%s\\%s", host, share);
        status = smb2_tree_connect(tree, &(tcon.smb2));
        if (!NT_STATUS_IS_OK(status)) {
-               talloc_free(tree);
+               talloc_free(tree1);
                torture_comment(tctx,"Failed to create secondary tree\n");
                return NULL;
        }