add enforce_init call to other realloc code path

pull/65/head
Daniel Micay 2018-10-20 02:27:06 -04:00
parent 6a408ad017
commit 9a43302868
1 changed files with 1 additions and 0 deletions

View File

@ -964,6 +964,7 @@ EXPORT void *h_realloc(void *old, size_t size) {
if (size <= max_slab_size_class && get_size_info(size).size == old_size) { if (size <= max_slab_size_class && get_size_info(size).size == old_size) {
return old; return old;
} }
enforce_init();
} else { } else {
enforce_init(); enforce_init();