diff options
Diffstat (limited to 'locale/duplocale.c')
-rw-r--r-- | locale/duplocale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/duplocale.c b/locale/duplocale.c index 0e1e673598..867232e5a9 100644 --- a/locale/duplocale.c +++ b/locale/duplocale.c @@ -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; |