From f1ba489ec8c51d416133279bd0ab94116be8038f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 20 Aug 2000 04:56:14 +0000 Subject: [PATCH] Update. * locale/findlocale.c (free_mem): Also free here->filename. * locale/loadlocale.c (_nl_unload_locale): Also free locale->name. * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of --- ChangeLog | 6 +++++- locale/findlocale.c | 1 + locale/loadlocale.c | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8049735185..e36ed78462 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-08-19 Ulrich Drepper + * locale/findlocale.c (free_mem): Also free here->filename. + + * locale/loadlocale.c (_nl_unload_locale): Also free locale->name. + * math/test-fenv.c (feenv_tests): Clear all exceptions before first test. (feexcp_nomask_test): Correct printf args. @@ -14,7 +18,7 @@ 2000-08-19 Wolfram Gloger - * malloc/malloc.c (new_heap): try harder to get an aligned chunk of + * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of size HEAP_MAX_SIZE. 2000-08-19 Andreas Jaeger diff --git a/locale/findlocale.c b/locale/findlocale.c index 1dc4e53e9e..7c77dd8e5e 100644 --- a/locale/findlocale.c +++ b/locale/findlocale.c @@ -258,6 +258,7 @@ free_mem (void) if (data != NULL && data->usage_count != UNDELETABLE) _nl_unload_locale (data); runp = runp->next; + free (here->filename); free (here); } } diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 2a7908c328..34f762388f 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -240,5 +240,6 @@ _nl_unload_locale (struct locale_data *locale) free ((void *) locale->filedata); free ((char *) locale->options); + free ((char *) locale->name); free (locale); }