]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
Remove unnecessary function calls to free x509 credentials.
authorSimon Ruderich <simon@ruderich.org>
Sat, 10 Aug 2013 13:46:49 +0000 (15:46 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 10 Aug 2013 13:46:49 +0000 (15:46 +0200)
gnutls_certificate_free_credentials() is enough to free all credentials.

src/connection.c

index 4a9b40d4af51d5e2e3347fd3cdbbcf279b79c565..3056aa79a9a34f24fd87d3ebb9e16c9e859267de 100644 (file)
@@ -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);
     }