]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix memory leak in ecdsa_keygen_knownanswer_test
authorNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 14:24:26 +0000 (09:24 -0500)
committerNeil Horman <nhorman@openssl.org>
Wed, 19 Feb 2025 14:30:25 +0000 (09:30 -0500)
commit20a2f3beba9be6e226a0633b60c29e8a928ccd21
treeccd488937eda3419d4df607a0a889b5d614353c3
parent5a1819a1506393ee9c313bb28e6816190541dfaf
Fix memory leak in ecdsa_keygen_knownanswer_test

We allocate an EC_POINT with EC_POINT_new here, but in failing a
subsequent check, we don't free it, correct that.

Fixes #26779

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26799)
crypto/ec/ec_key.c