From d40a1f72b6a298ee34c9de2c96b222d70609ce4c Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 20 Sep 2015 13:59:49 +0100 Subject: [PATCH] SRP memory leak fix Reviewed-by: Richard Levitte --- apps/s_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/s_client.c b/apps/s_client.c index e990a432c9..d76f921db6 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2023,6 +2023,9 @@ int s_client_main(int argc, char **argv) EVP_PKEY_free(key); sk_X509_pop_free(chain, X509_free); OPENSSL_free(pass); +#ifndef OPENSSL_NO_SRP + OPENSSL_free(srp_arg.srppassin); +#endif X509_VERIFY_PARAM_free(vpm); ssl_excert_free(exc); sk_OPENSSL_STRING_free(ssl_args); -- 2.25.1