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 a memory leak is incorrect. You might need to better understand the role of malloc/free (in the C library) and the underlying system memory handling functions (sbrk/brk/mmap/munmap). The former do not necessarily give back its memory to the system. That's not a memory leak by normal definitions. Or at least, an application cannot affect this "leak". Again: No GMP bug. The GMP lists are not the right place for discussions about how malloc interfaces to the kernel. But I am sure there are great explanations which you will be able to find on the Net. -- Torbjörn Please encrypt, key id 0xC8601622 _______________________________________________ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs