gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Simon Posnjak
Subject: [gnutls-dev] [PATCH] Memory leaks (2.)
Date: Tue, 31 Aug 2004 02:18:15 +0200

Hi,

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
down]):
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

Attachment: gnutls-memleak.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]