]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_nl_find_domain): Fix memory leak: Free normalized_codeset.
authorUlrich Drepper <drepper@redhat.com>
Sat, 25 Sep 1999 06:51:41 +0000 (06:51 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 25 Sep 1999 06:51:41 +0000 (06:51 +0000)
intl/finddomain.c

index a3083b10e21cd2a279437a5f6c3d26321cec0151..c6c176ae2bfabd82a840c907d4ec0f31068560d0 100644 (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;
 }