]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a leak in ossl_encode_ctx_setup_for_pkey
authorMatt Caswell <matt@openssl.org>
Mon, 21 Aug 2023 11:19:44 +0000 (12:19 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 23 Aug 2023 15:01:30 +0000 (16:01 +0100)
commit8ef63b6ff8301a0139c00df6c40173a63fd2db01
tree4179e0f55810abfa1a35edcab86662d7e3213c90
parent617cab094f0f0d4e71f8b9da5663be8ab06cba92
Fix a leak in ossl_encode_ctx_setup_for_pkey

Make sure we free the stack of names we allocated in an error path.

Found by the reproducible error patch in #21668

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/21796)
crypto/encode_decode/encoder_pkey.c