summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2023-09-28 11:47:35 +1000
committerPauli <pauli@openssl.org>2023-10-03 19:03:41 +1100
commiteda5e112b1d52cec545c8a699295afaafda0209a (patch)
tree2e9d457a4359a93f669bb30f09cbb00e99ca940b /crypto
parentd9395ec8897b8768265bf3fcbdd877a6c4cdcbc6 (diff)
Coverity 1545175: use after free
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from https://github.com/openssl/openssl/pull/22211) (cherry picked from commit 6bd07949e54f9958eb8a0f9a597ceb3910753ab0)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rand/rand_lib.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 31da28b4ff..2be5652097 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);