From f84ad0b1e075759d6926c05aeaba258e426774d1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 28 Jan 1999 14:14:08 +0000 Subject: 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". --- intl/finddomain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'intl/finddomain.c') 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 , 1995. + Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Written by Ulrich Drepper , 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); } } -- cgit v1.2.3