From 6af7e4faa6d9d612fb6cbcd2fc5dd226516367b5 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 19 Feb 2010 16:55:15 +0100 Subject: [PATCH] Fix a memory leak with client certificates. --- libratbox/src/openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libratbox/src/openssl.c b/libratbox/src/openssl.c index 9ddc356..81a8d17 100644 --- a/libratbox/src/openssl.c +++ b/libratbox/src/openssl.c @@ -633,6 +633,7 @@ rb_get_ssl_certfp(rb_fde_t *F, uint8_t certfp[RB_SSL_CERTFP_LEN]) memcpy(certfp, cert->sha1_hash, RB_SSL_CERTFP_LEN); return 1; } + X509_free(cert); } return 0;