From 5762d79fbaaf5d9bf1da054ad8a2cfb9075b4ebf Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 10 Aug 2013 15:46:49 +0200 Subject: [PATCH] Remove unnecessary function calls to free x509 credentials. gnutls_certificate_free_credentials() is enough to free all credentials. --- src/connection.c | 2 -- 1 file changed, 2 deletions(-) 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); } -- 2.45.2