From c4d02214053d34990ce28598691f3dddef6f3868 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 29 Jun 2020 08:17:25 +1000 Subject: [PATCH] coverity: CID 1464987: USE AFTER FREE Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/12309) --- providers/implementations/rands/drbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/implementations/rands/drbg.c b/providers/implementations/rands/drbg.c index c2fa99b865c..3394271835f 100644 --- a/providers/implementations/rands/drbg.c +++ b/providers/implementations/rands/drbg.c @@ -503,7 +503,7 @@ int PROV_DRBG_instantiate(PROV_DRBG *drbg, unsigned int strength, drbg->min_noncelen, drbg->max_noncelen)) { PROVerr(0, PROV_R_ERROR_RETRIEVING_NONCE); - OPENSSL_free(nonce); + goto end; } #ifndef PROV_RAND_GET_RANDOM_NONCE } else if (drbg->parent != NULL) { -- 2.47.2