summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r--source4/torture/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 3ef1f3b49ba..cc29ffad09a 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -33,13 +33,13 @@ _PUBLIC_ int torture_numasync=100;
struct torture_suite *torture_root = NULL;
-bool torture_register_suite(struct torture_suite *suite)
+bool torture_register_suite(TALLOC_CTX *mem_ctx, struct torture_suite *suite)
{
if (!suite)
return true;
if (torture_root == NULL)
- torture_root = talloc_zero(talloc_autofree_context(), struct torture_suite);
+ torture_root = talloc_zero(mem_ctx, struct torture_suite);
return torture_suite_add_suite(torture_root, suite);
}