summaryrefslogtreecommitdiff
path: root/source4/lib/charset/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-17 08:32:00 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:50:54 +0100
commit01b96e47cd77c345ac27c4c882e353852e49f22b (patch)
tree8ecaaa7fa3d542fff25ace2a4086e3ba0dbcfc89 /source4/lib/charset/tests
parent83655ec0dd58c21cdb99d5e7c8008b4b3087449b (diff)
downloadsamba-01b96e47cd77c345ac27c4c882e353852e49f22b.tar.gz
samba-01b96e47cd77c345ac27c4c882e353852e49f22b.tar.bz2
samba-01b96e47cd77c345ac27c4c882e353852e49f22b.zip
r26498: Fix memory leak in iconv code.
(This used to be commit 8795697db56e4ca6715950d68f5ec370604fcc76)
Diffstat (limited to 'source4/lib/charset/tests')
-rw-r--r--source4/lib/charset/tests/iconv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/charset/tests/iconv.c b/source4/lib/charset/tests/iconv.c
index d47390b814..aeb42c2fa1 100644
--- a/source4/lib/charset/tests/iconv.c
+++ b/source4/lib/charset/tests/iconv.c
@@ -157,8 +157,8 @@ static bool test_buffer(struct torture_context *test,
"failed to open %s to UTF-16LE",
charset));
}
- cd2 = smb_iconv_open(charset, "UTF-16LE", lp_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
- cd3 = smb_iconv_open("UTF-16LE", charset, lp_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
+ cd2 = smb_iconv_open_ex(test, charset, "UTF-16LE", lp_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
+ cd3 = smb_iconv_open_ex(test, "UTF-16LE", charset, lp_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
last_charset = charset;
}