mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 14:40:06 +00:00
(free_mem): Don't call munmap if gconv_cache is NULL.
This commit is contained in:
parent
2fd4de4b15
commit
b33026a852
@ -467,7 +467,7 @@ libc_freeres_fn (free_mem)
|
|||||||
if (cache_malloced)
|
if (cache_malloced)
|
||||||
free (gconv_cache);
|
free (gconv_cache);
|
||||||
#ifdef _POSIX_MAPPED_FILES
|
#ifdef _POSIX_MAPPED_FILES
|
||||||
else
|
else if (gconv_cache != NULL)
|
||||||
__munmap (gconv_cache, cache_size);
|
__munmap (gconv_cache, cache_size);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user