summaryrefslogtreecommitdiffstats
path: root/src/chunk_mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk_mmap.c')
-rw-r--r--src/chunk_mmap.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/chunk_mmap.c b/src/chunk_mmap.c
index 7e02c10..30ac10b 100644
--- a/src/chunk_mmap.c
+++ b/src/chunk_mmap.c
@@ -40,15 +40,7 @@ pages_map(void *addr, size_t size)
/*
* We succeeded in mapping memory, but not in the right place.
*/
- if (munmap(ret, size) == -1) {
- char buf[BUFERROR_BUF];
-
- buferror(get_errno(), buf, sizeof(buf));
- malloc_printf("<jemalloc: Error in munmap(): %s\n",
- buf);
- if (opt_abort)
- abort();
- }
+ pages_unmap(ret, size);
ret = NULL;
}
#endif