diff options
Diffstat (limited to 'locale/findlocale.c')
-rw-r--r-- | locale/findlocale.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/locale/findlocale.c b/locale/findlocale.c index 308aa2b60f..c027968530 100644 --- a/locale/findlocale.c +++ b/locale/findlocale.c @@ -64,7 +64,7 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len, *name = (char *) _nl_C_name; } - if (strcmp (*name, _nl_C_name) == 0 || strcmp (*name, "POSIX") == 0) + if (strcmp (*name, _nl_C_name) == 0 || strcmp (*name, _nl_POSIX_name) == 0) { /* We need not load anything. The needed data is contained in the library itself. */ @@ -203,6 +203,9 @@ _nl_remove_locale (int locale, struct locale_data *data) ptr->decided = 0; ptr->data = NULL; + /* Free the name. */ + free ((char *) data->name); + /* Really delete the data. First delete the real data. */ if (data->mmaped) { |