git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d42000
)
Allocate a talloc_stackframe() in main() for wbinfo.
author
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 21 Nov 2007 16:27:22 +0000
(10:27 -0600)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 21 Nov 2007 16:27:22 +0000
(10:27 -0600)
(This used to be commit
30c9e3557bf4ca0b85e15bd7cc883391aec42f1f
)
source3/nsswitch/wbinfo.c
patch
|
blob
|
history
diff --git
a/source3/nsswitch/wbinfo.c
b/source3/nsswitch/wbinfo.c
index 2a1fe615aba13bbe46e050c3edb7af62cf416cf7..488a080287b266ba433099d04a1609b4ec9fda64 100644
(file)
--- a/
source3/nsswitch/wbinfo.c
+++ b/
source3/nsswitch/wbinfo.c
@@
-1273,7
+1273,7
@@
enum {
int main(int argc, char **argv, char **envp)
{
int opt;
-
+ TALLOC_CTX *frame = talloc_stackframe();
poptContext pc;
static char *string_arg;
static char *opt_domain_name;
@@
-1613,6
+1613,8
@@
int main(int argc, char **argv, char **envp)
/* Exit code */
done:
+ talloc_destroy(frame);
+
poptFreeContext(pc);
return result;
}