Allocate a talloc_stackframe() in main() for wbinfo.
authorGerald (Jerry) Carter <jerry@samba.org>
Wed, 21 Nov 2007 16:27:22 +0000 (10:27 -0600)
committerGerald (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

index 2a1fe615aba13bbe46e050c3edb7af62cf416cf7..488a080287b266ba433099d04a1609b4ec9fda64 100644 (file)
@@ -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;
 }