From: Michael Adam Date: Thu, 2 Feb 2012 12:38:08 +0000 (+0100) Subject: s4:torture:smb2: talloc_free the right tree structure in secondary_tcon() X-Git-Tag: tevent-0.9.15~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce5fc22896a5475a33ee03ab6a1babf4159ebe57;p=thirdparty%2Fsamba.git s4:torture:smb2: talloc_free the right tree structure in secondary_tcon() Pair-Programmed-With: Stefan Metzmacher --- diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index b68ad55e967..070af0de9e3 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; }