Memory leaks in key generation

Tomas Mraz tmraz at
Thu Mar 8 18:16:07 CET 2012

The attached patch fixes a few possible memory leaks in

First one happens always when RSA key is generated using the libgcrypt

The remaining ones are rather theoretical only when some error paths are

The problem was reported to Red Hat Bugzilla by Sam Varshavchik.

Tomas Mraz
No matter how far down the wrong road you've gone, turn back.
                                              Turkish proverb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutls-2.12.14-leak.patch
Type: text/x-patch
Size: 1800 bytes
Desc: not available
URL: </pipermail/attachments/20120308/63d31a37/attachment.bin>

More information about the Gnutls-devel mailing list