s4:param use talloc_unlink() to free iconv context holding references
authorAndrew Bartlett <abartlet@samba.org>
Thu, 2 Jul 2009 04:34:07 +0000 (14:34 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 2 Jul 2009 04:34:07 +0000 (14:34 +1000)
source4/param/loadparm.c

index eeffe9874fa631d83a7a497aa3a3703139b7a574..11a936144287d8eeccbaccc5a8a235eddb59c590 100644 (file)
@@ -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);
 }