summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-05-09 16:20:07 -0700
committerJeremy Allison <jra@samba.org>2017-05-11 20:30:13 +0200
commit4039e51a6fdb476d9865df74dfccf7a020ead141 (patch)
treebbf49b8f9ce9a645e28ed7124b8a34f252e4cd52 /source4/torture/smbtorture.c
parent91267449ec1acc461069a8a505e2234221531643 (diff)
downloadsamba-4039e51a6fdb476d9865df74dfccf7a020ead141.tar.gz
s4: popt: Change from talloc_autofree_context() to NULL context.
Call popt_free_cmdline_credentials() on successful exit from torture. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/torture/smbtorture.c')
-rw-r--r--source4/torture/smbtorture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index 622f3eb15ea..dcce7328647 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -590,6 +590,7 @@ int main(int argc, const char *argv[])
if (list_testsuites) {
print_testsuite_list();
talloc_free(mem_ctx);
+ popt_free_cmdline_credentials();
return 0;
}
@@ -612,6 +613,7 @@ int main(int argc, const char *argv[])
}
}
talloc_free(mem_ctx);
+ popt_free_cmdline_credentials();
return 0;
}
@@ -701,6 +703,7 @@ int main(int argc, const char *argv[])
if (torture->results->returncode && correct) {
talloc_free(mem_ctx);
+ popt_free_cmdline_credentials();
return(0);
} else {
talloc_free(mem_ctx);