]> 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:12:14 +0000 (12:12 +0100)
commitf71858d4a4687875da030b5e1a9e58fd0cb246be
tree4a993f21d4c4c26b755ef17770eb0645ae4a8e17
parent9bb97aca3aed58f5b109fafe2136ba9a85996bce
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