From: Ulrich Drepper Date: Thu, 28 Jan 1999 16:05:51 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_0_112~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb7acc5fff4287de6c7d7863487fa506fa993764;p=thirdparty%2Fglibc.git Update. * locale/loadlocale.c (_nl_unload_locale): Free locale name. --- diff --git a/ChangeLog b/ChangeLog index 31df8ed340c..4e2e81d3249 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1999-01-28 Ulrich Drepper + * locale/loadlocale.c (_nl_unload_locale): Free locale name. + * intl/finddomain.c (free_mem): Also free filename. * locale/findlocale.c (free_mem): Likewise. (_nl_find_locale): Duplicate loc_name with strdupa not strdup. diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 8649abb241c..c762b77ed10 100644 --- a/locale/loadlocale.c +++ b/locale/loadlocale.c @@ -1,7 +1,7 @@ /* Functions to read locale data files. - Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. - Contributed by Ulrich Drepper , 1996. + Contributed by Ulrich Drepper , 1996. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as @@ -242,6 +242,9 @@ _nl_load_locale (struct loaded_l10nfile *file, int category) void _nl_unload_locale (struct locale_data *locale) { + if (locale->name != NULL) + free ((void *) locale->name); + #ifdef _POSIX_MAPPED_FILES if (locale->mmaped) __munmap ((caddr_t) locale->filedata, locale->filesize);