From ed1dc6b379feb88e129d63fe9c35abb6ebe975b8 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Mon, 22 Feb 2010 19:16:37 +0100 Subject: [PATCH] gnutls: I guess a gnutls_x509_crt_deinit() is needed to avoid memory leak. --- libratbox/src/gnutls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libratbox/src/gnutls.c b/libratbox/src/gnutls.c index 9728bb3..7d1a879 100644 --- a/libratbox/src/gnutls.c +++ b/libratbox/src/gnutls.c @@ -536,6 +536,7 @@ rb_get_ssl_certfp(rb_fde_t *F, uint8_t certfp[RB_SSL_CERTFP_LEN]) memcpy(certfp, digest, RB_SSL_CERTFP_LEN); + gnutls_x509_crt_deinit(cert); return 1; }