]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a decoder mem leak on an error path
authorMatt Caswell <matt@openssl.org>
Thu, 26 May 2022 10:09:58 +0000 (11:09 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 2 Jun 2022 09:31:12 +0000 (10:31 +0100)
commit9ec9b968f93e4a8e7c90eb1e717f0d7cd4ab722d
tree123364a142ab5d0dd754073bb1d74d1c51681910
parent2cba2e160d5b028e4a777e8038744a8bc4280629
Fix a decoder mem leak on an error path

If an error condition occurs then the the decoder that was up-refed in
ossl_decoder_instance_new can be leaked.

Found due to the error report here:
https://github.com/openssl/openssl/pull/18355#issuecomment-1138205688

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/18410)
crypto/encode_decode/decoder_lib.c