[gnutls-dev] [PATCH] Memory leaks (2.)

Simon Posnjak simon.posnjak at cetrtapot.si
Tue Aug 31 02:18:15 CEST 2004


I found two memory leaks. The can be found in both - the stable and
development versions of gnutls (1.0.20 and 1.1.18)

First one (this one leaks every time you call
gnutls_certificate_verify_peers [and it was a pain in the ass to track
In function gnutls_x509_crt_check_revocation there are two
gnutls_datum-s declared, which are then field with 
_gnutls_x509_crl_get_raw_issuer_dn function and the data is never released.

Second one:
All so the gnutls_certificate_free_credentials function does not free 
x509_rdn_sequence data.

The attached patch solves both problems. I tested it with 1.0.20 version - 
should work all so with cvs/development version.

		Regards Simon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnutls-memleak.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: </pipermail/attachments/20040831/3ba1f2d4/attachment.bin>

More information about the Gnutls-devel mailing list