r24825: Give testparm an initial talloc stackframe, so it does not complain
authorMichael Adam <obnox@samba.org>
Fri, 31 Aug 2007 09:15:57 +0000 (09:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:25 +0000 (12:30 -0500)
it is leaking.
(This used to be commit 705336ee1098a2c4d6e933dfa3e2f2968fa717ad)

source3/utils/testparm.c

index 56360d2ef5a09d3e606e48b7017aa18b6d785533..8c45f0837f5f7379e495e4f500dbded05b50f860 100644 (file)
@@ -220,6 +220,8 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
                POPT_TABLEEND
        };
 
+       TALLOC_CTX *frame = talloc_stackframe();
+
        load_case_tables();
 
        pc = poptGetContext(NULL, argc, argv, long_options, 
@@ -395,6 +397,7 @@ print command parameter is ignored when using CUPS libraries.\n",
                        }
                }
        }
+       TALLOC_FREE(frame);
        return(ret);
 }