diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp index 60e4abadb5e3c..5afc3d007d4d7 100644 --- a/libc/utils/MPFRWrapper/MPFRUtils.cpp +++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp @@ -262,6 +262,7 @@ class MPFRNumber { int d = mpz_tstbit(integer, 0); mpfr_set_si(result.value, d ? -1 : 1, mpfr_rounding); + mpz_clear(integer); return result; }