]> git.ipfire.org Git - thirdparty/openssl.git/commit
mac_legacy_kmgmt.c: Avoid possible memory leak on error
authorTomas Mraz <tomas@openssl.org>
Tue, 21 Jan 2025 13:38:23 +0000 (14:38 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 23 Jan 2025 11:09:35 +0000 (12:09 +0100)
commit75b03b00e23e8d5f66269bfd446e29dc568a098d
tree8045c850479d74648d920cb7fdc08a097f636d20
parent78e8819f1773a8a9393c1869ac01b176f2dfb52b
mac_legacy_kmgmt.c: Avoid possible memory leak on error

Use mac_gen_cleanup() instead of just freeing the gctx.
Fixes Coverity 1638702

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/26500)

(cherry picked from commit 2455ef2112997d6a366623a209f1d0090ed2d847)
providers/implementations/keymgmt/mac_legacy_kmgmt.c