(_nl_find_domain): Fix memory leak: Free normalized_codeset.

This commit is contained in:
Ulrich Drepper 1999-09-25 06:51:41 +00:00
parent 6eec6b031b
commit d99ce53936

View File

@ -191,6 +191,10 @@ _nl_find_domain (dirname, locale, domainname)
if (alias_value != NULL)
free (locale);
/* The space for normalized_codeset is dynamically allocated. Free it. */
if (mask & XPG_NORM_CODESET)
free (normalized_codeset);
return retval;
}