mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-19 13:40:59 +08:00
(_nl_free_locale): Do nothing if DATA is null.
This commit is contained in:
parent
103c293fb6
commit
8b575de1c6
@ -204,6 +204,9 @@ void
|
||||
_nl_free_locale (struct locale_data *data)
|
||||
{
|
||||
int save = errno;
|
||||
if (! data)
|
||||
/* Ignore a null pointer, like free does. */
|
||||
return;
|
||||
if (__munmap ((caddr_t) data->filedata, data->filesize) < 0)
|
||||
{
|
||||
if (errno == ENOSYS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user