]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a leak in an error path when duplicating an OSSL_DECODER_CTX.
authorMatt Caswell <matt@openssl.org>
Tue, 15 Aug 2023 14:05:38 +0000 (15:05 +0100)
committerHugo Landau <hlandau@openssl.org>
Thu, 17 Aug 2023 07:06:43 +0000 (08:06 +0100)
commite16c0103083af676af8c5564bb21585d4574f992
tree2139159931116326a968a63b1dff70ca523883ce
parente4d808652b0a1a19cfe615a6659e65ead0245108
Fix a leak in an error path when duplicating an OSSL_DECODER_CTX.

Make sure we free process_data_dest if it is not actually used.

Found by the reproducible error patch in #21668

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21741)
crypto/encode_decode/decoder_pkey.c