(_nl_free_locale): Do nothing if DATA is null.

This commit is contained in:
Roland McGrath 1995-04-26 20:06:15 +00:00
parent 103c293fb6
commit 8b575de1c6

View File

@ -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)