summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/durable_open.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c
index 7a85443f25..544f404047 100644
--- a/source4/torture/smb2/durable_open.c
+++ b/source4/torture/smb2/durable_open.c
@@ -164,6 +164,9 @@ bool test_durable_open_file_position(struct torture_context *tctx,
smb2_util_unlink(tree2, fname);
done:
+ talloc_free(tree1);
+ talloc_free(tree2);
+
return ret;
}
@@ -249,6 +252,9 @@ bool test_durable_open_oplock(struct torture_context *tctx,
smb2_util_close(tree2, h2);
smb2_util_unlink(tree2, fname);
+ talloc_free(tree1);
+ talloc_free(tree2);
+
return ret;
}
@@ -362,6 +368,9 @@ bool test_durable_open_lease(struct torture_context *tctx,
smb2_util_close(tree2, h2);
smb2_util_unlink(tree2, fname);
+ talloc_free(tree1);
+ talloc_free(tree2);
+
return ret;
}
@@ -469,6 +478,7 @@ bool test_durable_open_lock(struct torture_context *tctx,
done:
smb2_util_close(tree, h);
smb2_util_unlink(tree, fname);
+ talloc_free(tree);
return ret;
}
@@ -580,6 +590,9 @@ bool test_durable_open_open(struct torture_context *tctx,
smb2_util_close(tree1, h1);
smb2_util_unlink(tree1, fname);
+ talloc_free(tree1);
+ talloc_free(tree2);
+
return ret;
}