aboutsummaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-20 04:56:14 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-20 04:56:14 +0000
commitf1ba489ec8c51d416133279bd0ab94116be8038f (patch)
tree5d38816e068a8e2da47d9d78c63aa44277844b5a /locale
parent6145e82330790b302fb7cfdbb865843b9022c0e6 (diff)
downloadglibc-f1ba489ec8c51d416133279bd0ab94116be8038f.tar
glibc-f1ba489ec8c51d416133279bd0ab94116be8038f.tar.gz
glibc-f1ba489ec8c51d416133279bd0ab94116be8038f.tar.bz2
glibc-f1ba489ec8c51d416133279bd0ab94116be8038f.zip
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
Diffstat (limited to 'locale')
-rw-r--r--locale/findlocale.c1
-rw-r--r--locale/loadlocale.c1
2 files changed, 2 insertions, 0 deletions
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);
}