mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
(_nl_free_locale): Do nothing if DATA is null.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user