From: Simon Ruderich Date: Sat, 10 Aug 2013 13:46:49 +0000 (+0200) Subject: Remove unnecessary function calls to free x509 credentials. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=5762d79fbaaf5d9bf1da054ad8a2cfb9075b4ebf;p=tlsproxy%2Ftlsproxy.git Remove unnecessary function calls to free x509 credentials. gnutls_certificate_free_credentials() is enough to free all credentials. --- diff --git a/src/connection.c b/src/connection.c index 4a9b40d..3056aa7 100644 --- a/src/connection.c +++ b/src/connection.c @@ -337,8 +337,6 @@ out: } if (client_session_init) { gnutls_deinit(client_session); - gnutls_certificate_free_cas(client_x509_cred); - gnutls_certificate_free_keys(client_x509_cred); gnutls_certificate_free_credentials(client_x509_cred); }