diff --git a/libc/bionic/malloc_common.cpp b/libc/bionic/malloc_common.cpp index 5ecabd69109..b95ab46ee2b 100644 --- a/libc/bionic/malloc_common.cpp +++ b/libc/bionic/malloc_common.cpp @@ -443,9 +443,8 @@ void InitNativeAllocatorDispatch(libc_globals* globals) { &__scudo_malloc_dispatch; if (!hardened_impl) { - globals->malloc_dispatch_table = __scudo_malloc_dispatch; - globals->current_dispatch_table = &globals->malloc_dispatch_table; - globals->default_dispatch_table = &globals->malloc_dispatch_table; + globals->current_dispatch_table = &__scudo_malloc_dispatch; + globals->default_dispatch_table = &__scudo_malloc_dispatch; } native_allocator_dispatch = table;