From b921f1690fae8c6d9e080644d84f8b983d0b0d03 Mon Sep 17 00:00:00 2001 From: "Gerald (Jerry) Carter" Date: Wed, 21 Nov 2007 10:27:22 -0600 Subject: Allocate a talloc_stackframe() in main() for wbinfo. (This used to be commit 30c9e3557bf4ca0b85e15bd7cc883391aec42f1f) --- source3/nsswitch/wbinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch') 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; } -- cgit