git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d9484e
)
torture:smb2: fix memory leak in connect test.
author
Michael Adam
<obnox@samba.org>
Mon, 22 Feb 2016 22:23:13 +0000
(23:23 +0100)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/connect.c
b/source4/torture/smb2/connect.c
index f68c34f350927b8673a7e57cf592c182541b410e..e3716be2113e853aaa6c5c4e7cab5c12e5eb73aa 100644
(file)
--- a/
source4/torture/smb2/connect.c
+++ b/
source4/torture/smb2/connect.c
@@
-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;
}