Skip to content

Commit ae3f9f6

Browse files
committed
Get alloc size without wrapper
1 parent 2b8b4c8 commit ae3f9f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/override/malloc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extern "C"
8080
"Calling realloc on pointer that is not to the start of an allocation");
8181
}
8282
#endif
83-
size_t sz = SNMALLOC_NAME_MANGLE(malloc_usable_size)(ptr);
83+
size_t sz = Alloc::alloc_size(ptr);
8484
// Keep the current allocation if the given size is in the same sizeclass.
8585
if (sz == sizeclass_to_size(size_to_sizeclass(size)))
8686
return ptr;

0 commit comments

Comments
 (0)