From: Roland McGrath Date: Tue, 30 Jul 1996 19:02:29 +0000 (+0000) Subject: Tue Jul 30 13:23:13 1996 Ulrich Drepper X-Git-Tag: cvs/libc-960731~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d69b7ce7eeaea3e383d400237b3b00c83b8130fc;p=thirdparty%2Fglibc.git Tue Jul 30 13:23:13 1996 Ulrich Drepper * locale/setlocale.c (setlocale): Don't try to free C locale data. Reported by Matthias Urlichs. --- diff --git a/locale/setlocale.c b/locale/setlocale.c index 4a9f7854eb5..2c8ec3d4015 100644 --- a/locale/setlocale.c +++ b/locale/setlocale.c @@ -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