diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-01-28 16:05:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-01-28 16:05:51 +0000 |
commit | bb7acc5fff4287de6c7d7863487fa506fa993764 (patch) | |
tree | 3ccd07922707a5a19e6a373ac663802d8998ad4d /locale/loadlocale.c | |
parent | f84ad0b1e075759d6926c05aeaba258e426774d1 (diff) | |
download | glibc-bb7acc5fff4287de6c7d7863487fa506fa993764.tar.gz glibc-bb7acc5fff4287de6c7d7863487fa506fa993764.tar.xz glibc-bb7acc5fff4287de6c7d7863487fa506fa993764.zip |
Update.
* locale/loadlocale.c (_nl_unload_locale): Free locale name.
Diffstat (limited to 'locale/loadlocale.c')
-rw-r--r-- | locale/loadlocale.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c index 8649abb241..c762b77ed1 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 <drepper@gnu.ai.mit.edu>, 1996. + Contributed by Ulrich Drepper <drepper@gnu.org>, 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); |