summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-08-31 09:10:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:25 -0500
commitd051dce7b2e64a5e1d89f504dd5beb9409eb82a7 (patch)
tree536777c951f83a56f92b1bf6f3a1c8f25deedc9b /source3
parentdacdde6e5c047ad9a0e416dcff7afdc5e21fc4ce (diff)
downloadsamba-d051dce7b2e64a5e1d89f504dd5beb9409eb82a7.tar.gz
samba-d051dce7b2e64a5e1d89f504dd5beb9409eb82a7.tar.bz2
samba-d051dce7b2e64a5e1d89f504dd5beb9409eb82a7.zip
r24824: Create an initial talloc stackframe for the net binary.
(This used to be commit c97600b96f6315df8ab0d7ad186423ab75dd4ab5)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index c37e426d53..fe8db1a4bf 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;
}