remove unnecessary special case from realloc

pull/50/head
Daniel Micay 2018-09-01 02:38:00 -04:00
parent f441dfe2e3
commit c3a4829d77
1 changed files with 0 additions and 5 deletions

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