diff options
Diffstat (limited to 'libc/stdlib/malloc-standard')
-rw-r--r-- | libc/stdlib/malloc-standard/free.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/stdlib/malloc-standard/free.c b/libc/stdlib/malloc-standard/free.c index cfc937c60..9ffe51304 100644 --- a/libc/stdlib/malloc-standard/free.c +++ b/libc/stdlib/malloc-standard/free.c @@ -401,13 +401,11 @@ void free(void* mem) */ else { - int ret; size_t offset = p->prev_size; av->n_mmaps--; av->mmapped_mem -= (size + offset); - ret = munmap((char*)p - offset, size + offset); /* munmap returns non-zero on failure */ - assert(ret == 0); + assert(munmap((char*)p - offset, size + offset) == 0); } UNLOCK; } |