Tue Jul 30 13:23:13 1996 Ulrich Drepper <drepper@cygnus.com>

* locale/setlocale.c (setlocale): Don't try to free C locale
	data.
	Reported by Matthias Urlichs.
This commit is contained in:
Roland McGrath 1996-07-30 19:02:29 +00:00
parent b98f370ce8
commit d69b7ce7ee

View File

@ -325,7 +325,8 @@ setlocale (int category, const char *locale)
save_errno = errno;
while (++category < LC_ALL)
if (_nl_current[category] != NULL)
if (_nl_current[category] != NULL
&& newdata[category] != _nl_C[category])
_nl_free_locale (newdata[category]);
else
if (_nl_current[category] == NULL