From ae3f9f6aec7fb3ebe1fbccb87a6ed85316ffe039 Mon Sep 17 00:00:00 2001 From: theodus Date: Sun, 3 Feb 2019 08:19:11 -0500 Subject: [PATCH] Get alloc size without wrapper --- src/override/malloc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/override/malloc.cc b/src/override/malloc.cc index 3a30922..218191e 100644 --- a/src/override/malloc.cc +++ b/src/override/malloc.cc @@ -80,7 +80,7 @@ extern "C" "Calling realloc on pointer that is not to the start of an allocation"); } #endif - size_t sz = SNMALLOC_NAME_MANGLE(malloc_usable_size)(ptr); + size_t sz = Alloc::alloc_size(ptr); // Keep the current allocation if the given size is in the same sizeclass. if (sz == sizeclass_to_size(size_to_sizeclass(size))) return ptr;