remove unnecessary special case from realloc

This commit is contained in:
Daniel Micay 2018-09-01 02:38:00 -04:00
parent f441dfe2e3
commit c3a4829d77

View File

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