From b2d64e51f009c2717bad3bc7149afc5ffc05a6a6 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 9ddc356d..81a8d17f 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;