Skip to content

Commit

Permalink
perf: use free_sized in mpz.cpp
Browse files Browse the repository at this point in the history
The performance win here is pretty negligible (and of course irrelevant with the small allocator enabled), but this is consistent with it being used elsewhere.
  • Loading branch information
eric-wieser authored Jan 28, 2025
1 parent 26bc8c5 commit df9a2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/mpz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit df9a2ac

Please sign in to comment.