Mailing List Archive

Memory leak in gcry_pk_sign (libgcrypt v1.2.0)
Hello list,

While playing with libgcrypt-1.2.0 I found a small memory leak in
cipher/pubkey.c, function gcry_pk_sign: "gcry_mpi_t * result" is freed
without having its resources freed first. The attached patch seems to fix
the problem. Please have a look at it - I rather guessed there as I'm new
to libgcrypt land...

Sincerely,
Thilo


/* Dipl.-Ing. (FH) Thilo Fromm, MSc., Hardware & Software
* DResearch Digital Media Systems GmbH
* Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
* Tel: +49 (30) 515932-228 mailto:t.fromm@dresearch.de
* Fax: +49 (30) 515932-299 http://www.dresearch.de */