Re: memory leak huge number of digits mpz_mul,mpf_sqrt_ui

2021-02-26 Thread Torbjörn Granlund
Are you famiiar with valgrind? It is a great tool for detecting memory leaks. I used it to oonfirm that GMP indeed does not leak for your test cases. (You seem to have forgotten to mention the system you used for these experiments; I used an amd64 cpu running debian.) Your analysis of what is

Re: memory leak huge number of digits mpz_mul,mpf_sqrt_ui

2021-02-26 Thread Paul Zimmermann
Dear Susumu tsukamoto, I tried valgrind with the following simplified program and it shows no memory leak: $ cat test_mul.c #include "gmp.h" int main() { long int num = 20; // 200,000,000 long int ik; mpz_t DC; printf(" start: num= %'ld \n", num);