We have pages_unmap(ret, size) so we use it.

This commit is contained in:
Igor Podlesny 2015-03-22 23:49:58 +07:00 committed by Jason Evans
parent 4acd75a694
commit ef0a0cc328

View File

@ -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