]> 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:13 +0000 (12:09 +0100)
commit2455ef2112997d6a366623a209f1d0090ed2d847
tree244b02ae25354bf6a31ccf43c105cc988eb762ac
parent4f7d2b48093fd5147c652da319e43baea61a6218
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)
providers/implementations/keymgmt/mac_legacy_kmgmt.c