mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00:00
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:
parent
b98f370ce8
commit
d69b7ce7ee
@ -325,7 +325,8 @@ setlocale (int category, const char *locale)
|
|||||||
save_errno = errno;
|
save_errno = errno;
|
||||||
|
|
||||||
while (++category < LC_ALL)
|
while (++category < LC_ALL)
|
||||||
if (_nl_current[category] != NULL)
|
if (_nl_current[category] != NULL
|
||||||
|
&& newdata[category] != _nl_C[category])
|
||||||
_nl_free_locale (newdata[category]);
|
_nl_free_locale (newdata[category]);
|
||||||
else
|
else
|
||||||
if (_nl_current[category] == NULL
|
if (_nl_current[category] == NULL
|
||||||
|
Loading…
Reference in New Issue
Block a user