s4: torture: Change torture_register_suite() to add a TALLOC_CTX *.
[samba.git] / source4 / torture / libnetapi / libnetapi.c
index 856b2c8f997b3c7e79f4490621f45b4daef60a1c..9d3973a2bb8b194db523bc6423d41df6b3b74ad6 100644 (file)
@@ -84,7 +84,7 @@ NTSTATUS torture_libnetapi_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite;
 
-       suite = torture_suite_create(talloc_autofree_context(), "netapi");
+       suite = torture_suite_create(ctx, "netapi");
 
        torture_suite_add_simple_test(suite, "server", torture_libnetapi_server);
        torture_suite_add_simple_test(suite, "group", torture_libnetapi_group);
@@ -93,7 +93,7 @@ NTSTATUS torture_libnetapi_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "libnetapi convenience interface tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }