diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-01-11 07:08:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-01-11 07:08:29 +0000 |
commit | b33026a85210a848bcd422ca033c1bc08f1ef0b1 (patch) | |
tree | f9d968c283acba8b15cbd0a3eeea74b8ea2a01e9 /iconv/gconv_cache.c | |
parent | 2fd4de4b15a66f821057af90714145d2c034a609 (diff) | |
download | glibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.tar.gz glibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.tar.xz glibc-b33026a85210a848bcd422ca033c1bc08f1ef0b1.zip |
(free_mem): Don't call munmap if gconv_cache is NULL.
Diffstat (limited to 'iconv/gconv_cache.c')
-rw-r--r-- | iconv/gconv_cache.c | 2 |
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 } |