summaryrefslogtreecommitdiffstats
path: root/crypto/ct
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-04-26 23:59:02 +0200
committerPauli <paul.dale@oracle.com>2020-04-30 12:21:16 +0200
commit9b0e74c41aae177f8abf3227d923a076d2117f9a (patch)
tree0d5b410c700e070e4c80ddc5567c68d9151fd23e /crypto/ct
parentcoverity 1462565: Null pointer dereferences (diff)
downloadopenssl-9b0e74c41aae177f8abf3227d923a076d2117f9a.tar.xz
openssl-9b0e74c41aae177f8abf3227d923a076d2117f9a.zip
coverity 1462550 Resource leak
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11651)
Diffstat (limited to 'crypto/ct')
-rw-r--r--crypto/ct/ct_policy.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}