]> 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:19 +0000 (09:39 -0500)
commit5cff9d04afc6840353023ee34fb3f356858dfb0d
tree832c7a0ff202d2d3b8e6329614a7f981cd78dbe9
parent84b0a3a63c9fa29857be4c8c87fc1050d16338fc
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