summaryrefslogtreecommitdiff
path: root/source3/lib/smbconf
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-08 17:51:57 +0200
committerMichael Adam <obnox@samba.org>2008-04-10 01:28:58 +0200
commit869e011e0fb0691ce7a330d8d0814ca205322e5f (patch)
tree55d9627adaac1fb268a2e6620d3b75e10c9d1e86 /source3/lib/smbconf
parente251327b5b871e5887fc1c4c4605b92bf09a5840 (diff)
downloadsamba-869e011e0fb0691ce7a330d8d0814ca205322e5f.tar.gz
samba-869e011e0fb0691ce7a330d8d0814ca205322e5f.tar.bz2
samba-869e011e0fb0691ce7a330d8d0814ca205322e5f.zip
libsmbconf: testsuite: add talloc_stackframe to main().
Michael (This used to be commit 8c631ac2f42e984137972b7388add4bcbc199665)
Diffstat (limited to 'source3/lib/smbconf')
-rw-r--r--source3/lib/smbconf/testsuite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/smbconf/testsuite.c b/source3/lib/smbconf/testsuite.c
index faf4cb9e15..224868d2b9 100644
--- a/source3/lib/smbconf/testsuite.c
+++ b/source3/lib/smbconf/testsuite.c
@@ -91,6 +91,7 @@ int main(int argc, const char **argv)
{
bool ret;
poptContext pc;
+ TALLOC_CTX *mem_ctx = talloc_stackframe();
struct poptOption long_options[] = {
POPT_COMMON_CONFIGFILE
@@ -121,5 +122,6 @@ int main(int argc, const char **argv)
ret = torture_smbconf();
done:
+ TALLOC_FREE(mem_ctx);
return ret ? 0 : -1;
}