From: Matt Caswell Date: Mon, 12 Aug 2024 08:04:19 +0000 (+0100) Subject: Fix a memory leak in the speed app X-Git-Tag: openssl-3.4.0-alpha1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e82304adb8f51ed243ab1e57d8a4006bdbc0336;p=thirdparty%2Fopenssl.git Fix a memory leak in the speed app Make sure we free the ecdsa_key object after we have finished using it. Reviewed-by: Neil Horman Reviewed-by: Tom Cosgrove Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/25153) --- diff --git a/apps/speed.c b/apps/speed.c index 5ef378aef8d..dc3fe0c7806 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -3266,6 +3266,7 @@ int speed_main(int argc, char **argv) /* if longer than 10s, don't do any more */ stop_it(ecdsa_doit, testnum); } + EVP_PKEY_free(ecdsa_key); } for (testnum = 0; testnum < EC_NUM; testnum++) {