about summary refs log tree commit diff
path: root/intl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-08 23:44:12 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-08 23:44:12 +0000
commit727211c42911512f71d23eacf584ce1c3dbfd4c2 (patch)
tree8e12fe8fe75d251d93d7d4ca6a3519a54a7dfa1e /intl
parent36e7206eacd39519ecb0fa7329cc376f29d1ca2c (diff)
downloadglibc-727211c42911512f71d23eacf584ce1c3dbfd4c2.tar.gz
glibc-727211c42911512f71d23eacf584ce1c3dbfd4c2.tar.xz
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 'intl')
-rw-r--r--intl/l10nflist.c3
-rw-r--r--intl/loadinfo.h6
2 files changed, 8 insertions, 1 deletions
diff --git a/intl/l10nflist.c b/intl/l10nflist.c
index 5edba3a4d8..871b42814e 100644
--- a/intl/l10nflist.c
+++ b/intl/l10nflist.c
@@ -352,7 +352,8 @@ _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language,
 
 /* Normalize codeset name.  There is no standard for the codeset
    names.  Normalization allows the user to use any of the common
-   names.  */
+   names.  The return value is dynamically allocated and has to be
+   freed by the caller.  */
 const char *
 _nl_normalize_codeset (codeset, name_len)
      const char *codeset;
diff --git a/intl/loadinfo.h b/intl/loadinfo.h
index ea1bf05806..09b2fdf6ac 100644
--- a/intl/loadinfo.h
+++ b/intl/loadinfo.h
@@ -54,6 +54,10 @@ struct loaded_l10nfile
 };
 
 
+/* Normalize codeset name.  There is no standard for the codeset
+   names.  Normalization allows the user to use any of the common
+   names.  The return value is dynamically allocated and has to be
+   freed by the caller.  */
 extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
 						  size_t name_len));
 
@@ -70,6 +74,8 @@ _nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list,
 
 extern const char *_nl_expand_alias PARAMS ((const char *name));
 
+/* normalized_codeset is dynamically allocated and has to be freed by
+   the caller.  */
 extern int _nl_explode_name PARAMS ((char *name, const char **language,
 				     const char **modifier,
 				     const char **territory,