summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-08-31 09:15:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:25 -0500
commitfe6c338463f47bc5abcaa5f73a3fe48df4accd46 (patch)
treeef282a314fa10d4108f1d2348c9668cbb87788f5 /source3/utils
parentd051dce7b2e64a5e1d89f504dd5beb9409eb82a7 (diff)
downloadsamba-fe6c338463f47bc5abcaa5f73a3fe48df4accd46.tar.gz
samba-fe6c338463f47bc5abcaa5f73a3fe48df4accd46.tar.bz2
samba-fe6c338463f47bc5abcaa5f73a3fe48df4accd46.zip
r24825: Give testparm an initial talloc stackframe, so it does not complain
it is leaking. (This used to be commit 705336ee1098a2c4d6e933dfa3e2f2968fa717ad)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/testparm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 56360d2ef5..8c45f0837f 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -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);
}