(free_mem): Don't call munmap if gconv_cache is NULL.

This commit is contained in:
Ulrich Drepper 2006-01-11 07:08:29 +00:00
parent 2fd4de4b15
commit b33026a852

View File

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