* src/main.c (main): Fix memleak for fuzzing/testing

This commit is contained in:
Tim Rühsen 2018-04-21 18:21:52 +02:00
parent 7e635d173e
commit 7ecfe3ef70

View File

@ -1866,7 +1866,7 @@ for details.\n\n"));
if (opt.enable_iri)
{
if (opt.locale && !check_encoding_name (opt.locale))
opt.locale = NULL;
xfree (opt.locale);
if (!opt.locale)
opt.locale = find_locale ();