mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:torture:smb2: talloc_free the right tree structure in secondary_tcon()
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
87cf808edb
commit
ce5fc22896
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user