mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
locale: Call _nl_unload_locale from _nl_archive_subfreeres
The function performs the same steps for ld_archive locales (mapped from an archive), and this code is not performance-critical, so the specialization does not add value. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
0060a6de54
commit
0b6342e769
@ -515,13 +515,7 @@ _nl_archive_subfreeres (void)
|
||||
free (dead->name);
|
||||
for (category = 0; category < __LC_LAST; ++category)
|
||||
if (category != LC_ALL && dead->data[category] != NULL)
|
||||
{
|
||||
/* _nl_unload_locale just does this free for the archive case. */
|
||||
if (dead->data[category]->private.cleanup)
|
||||
(*dead->data[category]->private.cleanup) (dead->data[category]);
|
||||
|
||||
free (dead->data[category]);
|
||||
}
|
||||
_nl_unload_locale (dead->data[category]);
|
||||
free (dead);
|
||||
}
|
||||
archloaded = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user