summaryrefslogtreecommitdiff
path: root/source4/param
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/param
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/param')
-rw-r--r--source4/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index d732a09f2f..6c23a1d520 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2466,7 +2466,7 @@ bool lp_load(struct loadparm_context *lp_ctx, const char *filename)
/* FIXME: Check locale in environment for this: */
if (strcmp(lp_display_charset(lp_ctx), lp_unix_charset(lp_ctx)) != 0)
- d_set_iconv(smb_iconv_open(lp_display_charset(lp_ctx), lp_unix_charset(lp_ctx), true));
+ d_set_iconv(smb_iconv_open(lp_display_charset(lp_ctx), lp_unix_charset(lp_ctx)));
else
d_set_iconv((smb_iconv_t)-1);