diff --git a/libc/bionic/malloc_common.cpp b/libc/bionic/malloc_common.cpp index 51d4611a1a0..a10229e7c5b 100644 --- a/libc/bionic/malloc_common.cpp +++ b/libc/bionic/malloc_common.cpp @@ -435,9 +435,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;