aboutsummaryrefslogtreecommitdiff
path: root/iconv
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 /iconv
parent[BZ #321] (diff)
downloadglibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.tar.gz
glibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.tar.bz2
glibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.zip
(free_mem): Don't call munmap if gconv_cache is NULL.
Diffstat (limited to 'iconv')
-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 9a8a20816c..716c384de2 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
}