summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2007-11-21 10:27:22 -0600
committerGerald (Jerry) Carter <jerry@samba.org>2007-11-21 10:27:22 -0600
commitb921f1690fae8c6d9e080644d84f8b983d0b0d03 (patch)
tree92b2b71b9a9d407aa5414350d8af59eeb33745fc /source3/nsswitch
parent9d42000b7e308e5e70cc52c4736fd14f4511b7bc (diff)
downloadsamba-b921f1690fae8c6d9e080644d84f8b983d0b0d03.tar.gz
samba-b921f1690fae8c6d9e080644d84f8b983d0b0d03.tar.bz2
samba-b921f1690fae8c6d9e080644d84f8b983d0b0d03.zip
Allocate a talloc_stackframe() in main() for wbinfo.
(This used to be commit 30c9e3557bf4ca0b85e15bd7cc883391aec42f1f)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wbinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 2a1fe615ab..488a080287 100644
--- 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;
}