From: Ulrich Drepper Date: Sat, 25 Sep 1999 06:51:41 +0000 (+0000) Subject: (_nl_find_domain): Fix memory leak: Free normalized_codeset. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d99ce5393685367d94cc9cf3d2c426ee22e4592a;p=thirdparty%2Fglibc.git (_nl_find_domain): Fix memory leak: Free normalized_codeset. --- diff --git a/intl/finddomain.c b/intl/finddomain.c index a3083b10e21..c6c176ae2bf 100644 --- a/intl/finddomain.c +++ b/intl/finddomain.c @@ -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; }