Valgrind reports memory leaks

Werner Koch wk at
Fri Jan 26 19:30:10 CET 2007

On Thu, 25 Jan 2007 17:24, pedro.lageira at said:

> I'm using gcrypt library version 1.2.3. I made a very simple test
> program and run the Valgrind Memcheck (memory error detector) over it.
> It seems that gcry_ac_key_pair_generate() has a memory leak...
> I'm doing something wrong in my code? Can you help me?

We know that the ac family of functions have a couple of memory
leaks.  Some have been fixed in the developer version but not all.  It
is not really simple.

I suggest to avoid the ac functions and better use the pk functions -
they are activly used by GnuPG and more matured.



More information about the Gcrypt-devel mailing list