mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Update.
* locale/lc-time.c (free_mem): New function. Free alt_digits and walt_digits.
This commit is contained in:
parent
f1ba489ec8
commit
9b02e86850
@ -1,5 +1,8 @@
|
||||
2000-08-19 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* locale/lc-time.c (free_mem): New function. Free alt_digits and
|
||||
walt_digits.
|
||||
|
||||
* locale/findlocale.c (free_mem): Also free here->filename.
|
||||
|
||||
* locale/loadlocale.c (_nl_unload_locale): Also free locale->name.
|
||||
|
@ -248,3 +248,12 @@ _nl_get_walt_digit (unsigned int number)
|
||||
|
||||
return (wchar_t *) result;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
free_mem (void)
|
||||
{
|
||||
free (alt_digits);
|
||||
free (walt_digits);
|
||||
}
|
||||
text_set_element (__libc_subfreeres, free_mem);
|
||||
|
Loading…
Reference in New Issue
Block a user