All other callers use NULL here anyway, so there's no
need to use a special context for get_iconv_handle().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
struct smb_iconv_handle *get_iconv_handle(void)
{
- if (global_iconv_handle == NULL)
- global_iconv_handle = smb_iconv_handle_reinit(talloc_autofree_context(),
- "ASCII", "UTF-8", true, NULL);
+ if (global_iconv_handle == NULL) {
+ global_iconv_handle =
+ smb_iconv_handle_reinit(NULL,
+ "ASCII",
+ "UTF-8",
+ true,
+ NULL);
+ }
+
return global_iconv_handle;
}