From 22b5d7c80b9e65c7b16277f81f7b22ff91ac4974 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 20 Nov 2012 00:24:52 +0000 Subject: [PATCH] fix leaks --- apps/s_client.c | 2 ++ apps/s_server.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/apps/s_client.c b/apps/s_client.c index 7d22c070f5..f6a28540b5 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1956,6 +1956,8 @@ end: EVP_PKEY_free(key); if (pass) OPENSSL_free(pass); + if (vpm) + X509_VERIFY_PARAM_free(vpm); ssl_excert_free(exc); if (ssl_args) sk_OPENSSL_STRING_free(ssl_args); diff --git a/apps/s_server.c b/apps/s_server.c index 70cf5d7661..5129b002dd 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2040,6 +2040,8 @@ end: OPENSSL_free(pass); if (dpass) OPENSSL_free(dpass); + if (vpm) + X509_VERIFY_PARAM_free(vpm); free_sessions(); #ifndef OPENSSL_NO_TLSEXT if (tlscstatp.host) -- 2.25.1