From 92ea6fe597238779e23fd9e1fee82d30641d61a8 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 28 Sep 2015 14:31:53 +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 2c75e11a25..f80711fd5e 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2073,6 +2073,9 @@ int MAIN(int argc, char **argv) sk_X509_pop_free(chain, X509_free); if (pass) OPENSSL_free(pass); +#ifndef OPENSSL_NO_SRP + OPENSSL_free(srp_arg.srppassin); +#endif if (vpm) X509_VERIFY_PARAM_free(vpm); ssl_excert_free(exc); -- 2.25.1