summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-02 12:18:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:33 -0500
commitc62a988c3986e6c1c3269ad4af36f653f08b3c96 (patch)
treec433e5e7dd73f3275a15f511edd127f4338c25f0
parenta46270e2fa2812411f65136f36cc4bb3005b9c30 (diff)
downloadsamba-c62a988c3986e6c1c3269ad4af36f653f08b3c96.tar.gz
samba-c62a988c3986e6c1c3269ad4af36f653f08b3c96.tar.bz2
samba-c62a988c3986e6c1c3269ad4af36f653f08b3c96.zip
r2785: call init_iconv() in smbtorture to ensure we have no memory allocated
when a test started, thus making leak detection easier (This used to be commit 6c46e4622a9851bdef25ba9d353bdebc25f6ec8d)
-rw-r--r--source4/torture/torture.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 0ad53218b3..00a46a92d8 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -4281,6 +4281,7 @@ static BOOL run_test(const char *name)
if (gen_fnmatch(name, torture_ops[i].name) == 0) {
double t;
matched = True;
+ init_iconv();
printf("Running %s\n", torture_ops[i].name);
if (torture_ops[i].flags & FLAG_MULTIPROC) {
BOOL result;