r24824: Create an initial talloc stackframe for the net binary.
authorMichael Adam <obnox@samba.org>
Fri, 31 Aug 2007 09:10:54 +0000 (09:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:25 +0000 (12:30 -0500)
source/utils/net.c

index c37e426d531538c47c9c122713212faf80f32d72..fe8db1a4bf471300aa023eda00f83c1ad8f10ba2 100644 (file)
@@ -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;
 }