]> 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:40:03 +0000 (09:40 -0500)
commitbdce0426495d379c29c6e4fdb272c14b9a2f4d27
treee6b3cce211a1c98a6eab8c6e6bb9e1e2b65f26b5
parentb2c88ffda29a653bb14222dab0eaeb64a96d2440
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