There was an error while loading. Please reload this page.
1 parent 2b8b4c8 commit ae3f9f6Copy full SHA for ae3f9f6
1 file changed
src/override/malloc.cc
@@ -80,7 +80,7 @@ extern "C"
80
"Calling realloc on pointer that is not to the start of an allocation");
81
}
82
#endif
83
- size_t sz = SNMALLOC_NAME_MANGLE(malloc_usable_size)(ptr);
+ size_t sz = Alloc::alloc_size(ptr);
84
// Keep the current allocation if the given size is in the same sizeclass.
85
if (sz == sizeclass_to_size(size_to_sizeclass(size)))
86
return ptr;
0 commit comments