SRP memory leak fix
authorDr. Stephen Henson <steve@openssl.org>
Mon, 28 Sep 2015 13:31:53 +0000 (14:31 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 28 Sep 2015 13:31:53 +0000 (14:31 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/s_client.c

index 2c75e11a25a5ef57224eb6c06dabcc58facc5133..f80711fd5e58954b4feda78fd7882bd2e5ed61a3 100644 (file)
@@ -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);