]> 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:39:06 +0000 (09:39 -0500)
commit02121df47d694a2e450076e02089dda2fcde3f3b
tree07edee1600413882041aef9ae55507df1812cf44
parentb1895255b9ac7ec8fd559a59b96a9878c825bc61
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)

(cherry picked from commit 20a2f3beba9be6e226a0633b60c29e8a928ccd21)
crypto/ec/ec_key.c