git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r24824: Create an initial talloc stackframe for the net binary.
[obnox/samba/samba-obnox.git]
/
source
/
utils
/
net.c
diff --git
a/source/utils/net.c
b/source/utils/net.c
index c37e426d531538c47c9c122713212faf80f32d72..fe8db1a4bf471300aa023eda00f83c1ad8f10ba2 100644
(file)
--- 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;
}