2002-08-31 Roland McGrath <roland@redhat.com>
authorroland <roland>
Sat, 31 Aug 2002 18:28:33 +0000 (18:28 +0000)
committerroland <roland>
Sat, 31 Aug 2002 18:28:33 +0000 (18:28 +0000)
* locale/duplocale.c (__duplocale): Free names from the right array.

locale/duplocale.c

index 0e1e673..867232e 100644 (file)
@@ -56,8 +56,8 @@ __duplocale (__locale_t dataset)
              if (result->__names[cnt] == NULL)
                {
                  while (cnt-- > 0)
-                   if (dataset->__names[cnt] != _nl_C_name)
-                     free ((char *) dataset->__names[cnt]);
+                   if (result->__names[cnt] != _nl_C_name)
+                     free ((char *) result->__names[cnt]);
                  free (result);
                  result = NULL;
                  break;