diff options
author | Pauli <paul.dale@oracle.com> | 2020-04-26 23:59:02 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-04-30 12:21:16 +0200 |
commit | 9b0e74c41aae177f8abf3227d923a076d2117f9a (patch) | |
tree | 0d5b410c700e070e4c80ddc5567c68d9151fd23e /crypto/ct | |
parent | coverity 1462565: Null pointer dereferences (diff) | |
download | openssl-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.c | 1 |
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; } } |