r2785: call init_iconv() in smbtorture to ensure we have no memory allocated
authorAndrew Tridgell <tridge@samba.org>
Sat, 2 Oct 2004 12:18:59 +0000 (12:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:33 +0000 (12:59 -0500)
when a test started, thus making leak detection easier
(This used to be commit 6c46e4622a9851bdef25ba9d353bdebc25f6ec8d)

source4/torture/torture.c

index 0ad53218b3b9ea4becfd3f2a5628d2e10cbe7de7..00a46a92d8c571e6ebc6f9659e425c977883b3c9 100644 (file)
@@ -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;