From: Andrew Bartlett Date: Thu, 2 Jul 2009 04:34:07 +0000 (+1000) Subject: s4:param use talloc_unlink() to free iconv context holding references X-Git-Tag: tevent-0.9.8~834 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=d7af80fc2e83810d6ee049eb31a46a98dd159cb6 s4:param use talloc_unlink() to free iconv context holding references --- diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index eeffe9874fa..11a93614428 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); }