From e7e56bcc72cb4e4372f03a66e62bebb3005c633b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 24 Apr 2017 14:41:26 -0700 Subject: s4: torture: Change torture_register_suite() to add a TALLOC_CTX *. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change callers to use the passed in TALLOC_CTX * instead of talloc_autofree_context(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- source4/torture/local/local.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/torture/local') diff --git a/source4/torture/local/local.c b/source4/torture/local/local.c index e7231524a51..d1c523bdc1f 100644 --- a/source4/torture/local/local.c +++ b/source4/torture/local/local.c @@ -83,7 +83,7 @@ NTSTATUS torture_local_init(TALLOC_CTX *ctx) { int i; struct torture_suite *suite = torture_suite_create( - talloc_autofree_context(), "local"); + ctx, "local"); torture_suite_add_simple_test(suite, "talloc", torture_local_talloc); torture_suite_add_simple_test(suite, "replace", torture_local_replace); @@ -103,12 +103,12 @@ NTSTATUS torture_local_init(TALLOC_CTX *ctx) for (i = 0; suite_generators[i]; i++) torture_suite_add_suite(suite, - suite_generators[i](talloc_autofree_context())); + suite_generators[i](ctx)); suite->description = talloc_strdup(suite, "Local, Samba-specific tests"); - torture_register_suite(suite); + torture_register_suite(ctx, suite); return NT_STATUS_OK; } -- cgit v1.2.1