From: Pauli Date: Sun, 26 Apr 2020 21:59:02 +0000 (+1000) Subject: coverity 1462550 Resource leak X-Git-Tag: openssl-3.0.0-alpha2~132 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9b0e74c41aae177f8abf3227d923a076d2117f9a;p=oweals%2Fopenssl.git coverity 1462550 Resource leak Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/11651) --- diff --git a/crypto/ct/ct_policy.c b/crypto/ct/ct_policy.c index 76e08b8f8f..e067fd8ea5 100644 --- a/crypto/ct/ct_policy.c +++ b/crypto/ct/ct_policy.c @@ -40,6 +40,7 @@ CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new_with_libctx(OPENSSL_CTX *libctx, ctx->propq = OPENSSL_strdup(propq); if (ctx->propq == NULL) { CTerr(0, ERR_R_MALLOC_FAILURE); + OPENSSL_free(ctx); return NULL; } }