Fix memory leaks on error cases during drbg initializations
authorTomas Mraz <tomas@openssl.org>
Wed, 7 Feb 2024 09:27:50 +0000 (10:27 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 9 Feb 2024 09:36:59 +0000 (10:36 +0100)
commit30cc769fa3220006b7e41bfd620e8c534dccf32f
tree31cf228b65ec2b61b7e2705baa952a48f8101db9
parent09dede4656cd9a2297d3c2060c945c4a7ea7780d
Fix memory leaks on error cases during drbg initializations

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/23503)

(cherry picked from commit cb4f7a6ee053e8c51cf3ac35fee333d1f25552c0)
providers/implementations/rands/drbg.c
providers/implementations/rands/drbg_ctr.c
providers/implementations/rands/drbg_hash.c
providers/implementations/rands/drbg_hmac.c
providers/implementations/rands/drbg_local.h