We have pages_unmap(ret, size) so we use it.
This commit is contained in:
parent
4acd75a694
commit
ef0a0cc328
@ -40,15 +40,7 @@ pages_map(void *addr, size_t size)
|
|||||||
/*
|
/*
|
||||||
* We succeeded in mapping memory, but not in the right place.
|
* We succeeded in mapping memory, but not in the right place.
|
||||||
*/
|
*/
|
||||||
if (munmap(ret, size) == -1) {
|
pages_unmap(ret, size);
|
||||||
char buf[BUFERROR_BUF];
|
|
||||||
|
|
||||||
buferror(get_errno(), buf, sizeof(buf));
|
|
||||||
malloc_printf("<jemalloc: Error in munmap(): %s\n",
|
|
||||||
buf);
|
|
||||||
if (opt_abort)
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user