memory leak huge number of digits mpz_mul, mpf_sqrt_ui

Torbjörn Granlund tg at
Thu Feb 25 11:22:21 UTC 2021

Your analysis is very likely incorrect.

You may cause the same "leak" without GMP.  Just malloc a set of large
chunks of different sizes.  Access them to make sure it is actually
there, then free them in some random order.  Often the free calls will
not have given back the memory to the system.  Still, that's no memory
leak in the sense you seem to suggest.

Please encrypt, key id 0xC8601622

More information about the gmp-bugs mailing list