From d051dce7b2e64a5e1d89f504dd5beb9409eb82a7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 31 Aug 2007 09:10:54 +0000 Subject: [PATCH] r24824: Create an initial talloc stackframe for the net binary. (This used to be commit c97600b96f6315df8ab0d7ad186423ab75dd4ab5) --- source3/utils/net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/utils/net.c b/source3/utils/net.c index c37e426d531..fe8db1a4bf4 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -973,6 +973,8 @@ static struct functable net_func[] = { { 0, 0, 0, 0} }; + TALLOC_CTX *frame = talloc_stackframe(); + zero_ip(&opt_dest_ip); load_case_tables(); @@ -1074,5 +1076,6 @@ static struct functable net_func[] = { rc = net_run_function(argc_new-1, argv_new+1, net_func, net_help); DEBUG(2,("return code = %d\n", rc)); + TALLOC_FREE(frame); return rc; } -- 2.11.4.GIT