diff --git a/src/runtime/mpz.cpp b/src/runtime/mpz.cpp index ff9606f32715..421fc1799218 100644 --- a/src/runtime/mpz.cpp +++ b/src/runtime/mpz.cpp @@ -324,7 +324,7 @@ static void mpz_dealloc(void *ptr, size_t size) { #ifdef LEAN_SMALL_ALLOCATOR dealloc(ptr, size); #else - free(ptr); + free_sized(ptr, size); #endif }