diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-11-08 23:44:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-11-08 23:44:12 +0000 |
commit | 727211c42911512f71d23eacf584ce1c3dbfd4c2 (patch) | |
tree | 8e12fe8fe75d251d93d7d4ca6a3519a54a7dfa1e /locale/findlocale.c | |
parent | 36e7206eacd39519ecb0fa7329cc376f29d1ca2c (diff) | |
download | glibc-727211c42911512f71d23eacf584ce1c3dbfd4c2.tar glibc-727211c42911512f71d23eacf584ce1c3dbfd4c2.tar.gz glibc-727211c42911512f71d23eacf584ce1c3dbfd4c2.tar.bz2 glibc-727211c42911512f71d23eacf584ce1c3dbfd4c2.zip |
Update.
1999-11-08 Andreas Jaeger <aj@suse.de>
* locale/findlocale.c (_nl_find_locale): Free normalized_codeset;
this fixes a memory leak (closes PR libc/1435).
* intl/l10nflist.c (_nl_normalize_codeset): Update comment to
reflect memory allocation.
* intl/loadinfo.h: Comment _nl_normalize_codeset, comment memory
allocation in _nl_explode_name.
1999-11-06 Andreas Jaeger <aj@suse.de>
* time/tzset.c: Use __libc_lock_define_initialized for tzset_lock
to initialize it.
Reported by wes@surety.com, closes PR libc/1432.
1999-11-05 Geoff Keating <geoffk@cygnus.com>
* sysdeps/powerpc/fpu/bits/fenv.h: Don't put commas at the end of
enumerator lists (-pedantic complains).
(feraiseexcept): Use i#*X as the constraint. Fix a bug in the
test for 'one bit set'.
(feclearexcept): Likewise.
Diffstat (limited to 'locale/findlocale.c')
-rw-r--r-- | locale/findlocale.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/locale/findlocale.c b/locale/findlocale.c index c6717f108d..9cb22068f7 100644 --- a/locale/findlocale.c +++ b/locale/findlocale.c @@ -141,6 +141,10 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len, between two locales would slowly eat up all memory. */ free ((void *) loc_name); + /* The space for normalized_codeset is dynamically allocated. Free it. */ + if (mask & XPG_NORM_CODESET) + free ((void *) normalized_codeset); + if (locale_file->decided == 0) _nl_load_locale (locale_file, category); |