From: Michael Adam Date: Fri, 31 Aug 2007 09:10:54 +0000 (+0000) Subject: r24824: Create an initial talloc stackframe for the net binary. X-Git-Tag: samba-misc-tags/initial-v3-2-unstable~251 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=c97600b96f6315df8ab0d7ad186423ab75dd4ab5;p=samba.git r24824: Create an initial talloc stackframe for the net binary. --- diff --git a/source/utils/net.c b/source/utils/net.c index c37e426d531..fe8db1a4bf4 100644 --- a/source/utils/net.c +++ b/source/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; }