From c3a4829d77a68026e46059f10f17bd05493c1ef8 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 1 Sep 2018 02:38:00 -0400 Subject: [PATCH] remove unnecessary special case from realloc --- malloc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/malloc.c b/malloc.c index b997dbe..a147bda 100644 --- a/malloc.c +++ b/malloc.c @@ -799,11 +799,6 @@ EXPORT void *h_realloc(void *old, size_t size) { enforce_init(); - if (size == 0) { - deallocate(old); - return allocate(size); - } - size_t old_size; if (old >= ro.slab_region_start && old < ro.slab_region_end) { old_size = slab_usable_size(old);