From cedf19f356c23cedcb8fc37233d84a4682be00f4 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 20 Nov 2012 00:28:22 +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 e64aaf66c6..7a75888daf 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1921,6 +1921,8 @@ end: EVP_PKEY_free(key); if (pass) OPENSSL_free(pass); + if (vpm) + X509_VERIFY_PARAM_free(vpm); if (cbuf != NULL) { OPENSSL_cleanse(cbuf,BUFSIZZ); OPENSSL_free(cbuf); } if (sbuf != NULL) { OPENSSL_cleanse(sbuf,BUFSIZZ); OPENSSL_free(sbuf); } if (mbuf != NULL) { OPENSSL_cleanse(mbuf,BUFSIZZ); OPENSSL_free(mbuf); } diff --git a/apps/s_server.c b/apps/s_server.c index 0d493295ef..20f0c221a0 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1966,6 +1966,8 @@ end: OPENSSL_free(pass); if (dpass) OPENSSL_free(dpass); + if (vpm) + X509_VERIFY_PARAM_free(vpm); #ifndef OPENSSL_NO_TLSEXT if (tlscstatp.host) OPENSSL_free(tlscstatp.host); -- 2.25.1