From: Patrick Steuer Date: Mon, 4 Dec 2017 15:23:24 +0000 (-0500) Subject: key_A and key_B had 3 references, only 2 were freed. X-Git-Tag: OpenSSL_1_1_1-pre1~377 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a00cceb22ca2bbe394e235345760d1fe54ee2eea;p=oweals%2Fopenssl.git key_A and key_B had 3 references, only 2 were freed. Signed-off-by: Patrick Steuer Reviewed-by: Andy Polyakov Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4837) --- diff --git a/apps/speed.c b/apps/speed.c index bca2968aa8..271472eb09 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -2819,6 +2819,8 @@ int speed_main(int argc, char **argv) loopargs[i].ecdh_ctx[testnum] = ctx; loopargs[i].outlen[testnum] = outlen; + EVP_PKEY_free(key_A); + EVP_PKEY_free(key_B); EVP_PKEY_CTX_free(kctx); kctx = NULL; EVP_PKEY_CTX_free(test_ctx);