svn commit: samba r24824 - in branches: SAMBA_3_2/source/utils
SAMBA_3_2_0/source/utils
obnox at samba.org
obnox at samba.org
Fri Aug 31 09:10:56 GMT 2007
Author: obnox
Date: 2007-08-31 09:10:54 +0000 (Fri, 31 Aug 2007)
New Revision: 24824
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24824
Log:
Create an initial talloc stackframe for the net binary.
Modified:
branches/SAMBA_3_2/source/utils/net.c
branches/SAMBA_3_2_0/source/utils/net.c
Changeset:
Modified: branches/SAMBA_3_2/source/utils/net.c
===================================================================
--- branches/SAMBA_3_2/source/utils/net.c 2007-08-31 06:48:32 UTC (rev 24823)
+++ branches/SAMBA_3_2/source/utils/net.c 2007-08-31 09:10:54 UTC (rev 24824)
@@ -973,6 +973,8 @@
{ 0, 0, 0, 0}
};
+ TALLOC_CTX *frame = talloc_stackframe();
+
zero_ip(&opt_dest_ip);
load_case_tables();
@@ -1074,5 +1076,6 @@
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;
}
Modified: branches/SAMBA_3_2_0/source/utils/net.c
===================================================================
--- branches/SAMBA_3_2_0/source/utils/net.c 2007-08-31 06:48:32 UTC (rev 24823)
+++ branches/SAMBA_3_2_0/source/utils/net.c 2007-08-31 09:10:54 UTC (rev 24824)
@@ -973,6 +973,8 @@
{ 0, 0, 0, 0}
};
+ TALLOC_CTX *frame = talloc_stackframe();
+
zero_ip(&opt_dest_ip);
load_case_tables();
@@ -1074,5 +1076,6 @@
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;
}
More information about the samba-cvs
mailing list