diff --git a/h_malloc.c b/h_malloc.c index 486e6a58..2dc0bde3 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -1493,7 +1493,7 @@ EXPORT void *h_realloc(void *old, size_t size) { } } - void *new = allocate(thread_arena, size); + void *new = allocate(init(), size); if (new == NULL) { thread_seal_metadata(); return NULL;