mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
(setname): Only free the correct memory.
This commit is contained in:
parent
8ed0d0c8f8
commit
a865a9eded
@ -207,7 +207,7 @@ setname (int category, const char *name)
|
||||
if (_nl_current_names[category] == name)
|
||||
return;
|
||||
|
||||
if (_nl_current_names[category] != _nl_C_name)
|
||||
if (category == LC_ALL && _nl_current_names[category] != _nl_C_name)
|
||||
free ((void *) _nl_current_names[category]);
|
||||
|
||||
_nl_current_names[category] = name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user