diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-01-28 14:14:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-01-28 14:14:08 +0000 |
commit | f84ad0b1e075759d6926c05aeaba258e426774d1 (patch) | |
tree | 3c5f697b7beca005e536c9b3d4a3829274bf1946 /intl | |
parent | d328b80b4e2620e0f34271a069b09c05ac16831d (diff) | |
download | glibc-f84ad0b1e075759d6926c05aeaba258e426774d1.tar.gz glibc-f84ad0b1e075759d6926c05aeaba258e426774d1.tar.xz glibc-f84ad0b1e075759d6926c05aeaba258e426774d1.zip |
Update.
* intl/finddomain.c (free_mem): Also free filename. * locale/findlocale.c (free_mem): Likewise. (_nl_find_locale): Duplicate loc_name with strdupa not strdup. * locale/setlocale.c (free_mem): New function. Free current locale data and set current locale to "C".
Diffstat (limited to 'intl')
-rw-r--r-- | intl/finddomain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/intl/finddomain.c b/intl/finddomain.c index 0b697ef053..7734fbf24f 100644 --- a/intl/finddomain.c +++ b/intl/finddomain.c @@ -1,6 +1,6 @@ /* Handle list of needed message catalogs - Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. + Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Written by Ulrich Drepper <drepper@gnu.org>, 1995. This file is part of the GNU C Library. Its master source is NOT part of the C library, however. @@ -212,6 +212,7 @@ free_mem (void) if (runp->data != NULL) _nl_unload_domain ((struct loaded_domain *) runp->data); runp = runp->next; + free ((char *) here->filename); free (here); } } |