From: Ulrich Drepper Date: Wed, 11 Jan 2006 07:08:29 +0000 (+0000) Subject: (free_mem): Don't call munmap if gconv_cache is NULL. X-Git-Tag: cvs/fedora-glibc-20060130T0922~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b33026a85210a848bcd422ca033c1bc08f1ef0b1;p=thirdparty%2Fglibc.git (free_mem): Don't call munmap if gconv_cache is NULL. --- diff --git a/iconv/gconv_cache.c b/iconv/gconv_cache.c index 9a8a20816c3..716c384de2d 100644 --- a/iconv/gconv_cache.c +++ b/iconv/gconv_cache.c @@ -467,7 +467,7 @@ libc_freeres_fn (free_mem) if (cache_malloced) free (gconv_cache); #ifdef _POSIX_MAPPED_FILES - else + else if (gconv_cache != NULL) __munmap (gconv_cache, cache_size); #endif }