summaryrefslogtreecommitdiff
path: root/lib/x509
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2004-08-31 08:08:48 +0000
committerSimon Josefsson <simon@josefsson.org>2004-08-31 08:08:48 +0000
commit854ee86bfe2967d1f7498cc4f16c9b20c89c6e6e (patch)
treea8a217bd8798a2b6b9b63750b584fa3f26c97d4f /lib/x509
parent70f453ce8ac1aae86c0f44ff507c8a5a61db19fe (diff)
downloadgnutls-854ee86bfe2967d1f7498cc4f16c9b20c89c6e6e.tar.gz
Fix mem leak (tiny patch). From Simon Posnjak
<simon.posnjak@cetrtapot.si>.
Diffstat (limited to 'lib/x509')
-rw-r--r--lib/x509/x509.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/x509/x509.c b/lib/x509/x509.c
index 613842cedf..ae4b49aabb 100644
--- a/lib/x509/x509.c
+++ b/lib/x509/x509.c
@@ -1441,6 +1441,8 @@ int gnutls_x509_crt_check_revocation(gnutls_x509_crt_t cert,
}
ret = _gnutls_x509_compare_raw_dn(&dn1, &dn2);
+ _gnutls_free_datum(&dn1);
+ _gnutls_free_datum(&dn2);
if (ret == 0) {
/* issuers do not match so don't even
* bother checking.