r1647: destroy mem_ctx
authorStefan Metzmacher <metze@samba.org>
Wed, 4 Aug 2004 07:44:14 +0000 (07:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:57:46 +0000 (12:57 -0500)
metze
(This used to be commit 973ac69a012e579a09807d635061ff3550a10719)

source4/torture/rpc/netlogon.c

index f668c17d8942a9fdabb94815ca6dca8a1fdedeac..b08be80bb03322d234f8bf7f83fd8e9077547cc1 100644 (file)
@@ -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);