summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-02 13:38:08 +0100
committerMichael Adam <obnox@samba.org>2012-02-03 11:10:30 +0100
commitce5fc22896a5475a33ee03ab6a1babf4159ebe57 (patch)
tree069d3e62e385d325403a9041fdd62a8541216854
parent87cf808edb6878187caf2ee533b59ac4d4415767 (diff)
downloadsamba-ce5fc22896a5475a33ee03ab6a1babf4159ebe57.tar.gz
samba-ce5fc22896a5475a33ee03ab6a1babf4159ebe57.tar.bz2
samba-ce5fc22896a5475a33ee03ab6a1babf4159ebe57.zip
s4:torture:smb2: talloc_free the right tree structure in secondary_tcon()
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source4/torture/smb2/notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c
index b68ad55e96..070af0de9e 100644
--- a/source4/torture/smb2/notify.c
+++ b/source4/torture/smb2/notify.c
@@ -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;
}