aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-01-11 07:08:29 +0000
committerUlrich Drepper <drepper@redhat.com>2006-01-11 07:08:29 +0000
commitb33026a85210a848bcd422ca033c1bc08f1ef0b1 (patch)
treef9d968c283acba8b15cbd0a3eeea74b8ea2a01e9
parent2fd4de4b15a66f821057af90714145d2c034a609 (diff)
downloadglibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.zip
glibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.tar.gz
glibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.tar.bz2
(free_mem): Don't call munmap if gconv_cache is NULL.
-rw-r--r--iconv/gconv_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/gconv_cache.c b/iconv/gconv_cache.c
index 9a8a208..716c384 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
}