diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-12-30 09:36:37 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-12-30 02:49:01 +0100 |
commit | 0f9b35d4d4d2df61c197d5392546f3c26c25e940 (patch) | |
tree | 678f7db0f466e74c5e07940f068f84169fd05187 /lib | |
parent | 3eda09d7eb3fcfdfbe5fc436c774c8fbc82a016f (diff) | |
download | samba-0f9b35d4d4d2df61c197d5392546f3c26c25e940.tar.gz samba-0f9b35d4d4d2df61c197d5392546f3c26c25e940.tar.xz samba-0f9b35d4d4d2df61c197d5392546f3c26c25e940.zip |
torture: NULL out after talloc_free
This appeared as a segmentation fault in rpc.spoolss.printer.
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Dec 30 02:49:01 CET 2014 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torture/torture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/torture/torture.c b/lib/torture/torture.c index ff2f8c8939..78d8261d1a 100644 --- a/lib/torture/torture.c +++ b/lib/torture/torture.c @@ -460,6 +460,7 @@ static bool internal_torture_run_test(struct torture_context *context, context->last_reason); talloc_free(context->last_reason); + context->last_reason = NULL; context->active_test = NULL; context->active_tcase = NULL; |