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