summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-07-02 14:34:07 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-07-02 14:34:07 +1000
commitd7af80fc2e83810d6ee049eb31a46a98dd159cb6 (patch)
tree511a69b119bfb27a93daa102b73a8b63fa48b7a7 /source4/param
parent5049f61f39d6f6e95cc897372abe9b6c886e45ac (diff)
downloadsamba-d7af80fc2e83810d6ee049eb31a46a98dd159cb6.tar.gz
samba-d7af80fc2e83810d6ee049eb31a46a98dd159cb6.tar.bz2
samba-d7af80fc2e83810d6ee049eb31a46a98dd159cb6.zip
s4:param use talloc_unlink() to free iconv context holding references
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 eeffe9874f..11a9361442 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2650,7 +2650,7 @@ struct smb_iconv_convenience *lp_iconv_convenience(struct loadparm_context *lp_c
_PUBLIC_ void reload_charcnv(struct loadparm_context *lp_ctx)
{
- talloc_free(lp_ctx->iconv_convenience);
+ talloc_unlink(lp_ctx, lp_ctx->iconv_convenience);
global_iconv_convenience = lp_ctx->iconv_convenience = smb_iconv_convenience_init_lp(lp_ctx, lp_ctx);
}