summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/netlogon.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc/netlogon.c')
-rw-r--r--source4/torture/rpc/netlogon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index f668c17d89..b08be80bb0 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -1713,7 +1713,9 @@ BOOL torture_rpc_netlogon(int dummy)
ret = False;
}
- torture_rpc_close(p);
+ talloc_destroy(mem_ctx);
+
+ torture_rpc_close(p);
torture_leave_domain(join_ctx);