From fdcfc3bd1609185c1ba17261ea4c8f3d19c4e3c6 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 28 Sep 2015 14:31:53 +0100 Subject: 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 e55f2c5..03eb51a 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2065,6 +2065,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); -- 1.7.12.1