From eda5e112b1d52cec545c8a699295afaafda0209a Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 28 Sep 2023 11:47:35 +1000 Subject: [PATCH] Coverity 1545175: use after free Reviewed-by: Tomas Mraz Reviewed-by: Tom Cosgrove (Merged from https://github.com/openssl/openssl/pull/22211) (cherry picked from commit 6bd07949e54f9958eb8a0f9a597ceb3910753ab0) --- crypto/rand/rand_lib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 31da28b4ff3..2be5652097a 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -602,7 +602,6 @@ static EVP_RAND_CTX *rand_new_seed(OSSL_LIB_CTX *libctx) } if (!EVP_RAND_instantiate(ctx, 0, 0, NULL, 0, NULL)) { ERR_raise(ERR_LIB_RAND, RAND_R_ERROR_INSTANTIATING_DRBG); - EVP_RAND_CTX_free(ctx); goto err; } OPENSSL_free(props); -- 2.47.2