diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-09-07 17:44:38 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-09-07 17:44:38 +1000 |
commit | 309e73dfe067b3b774ef6f57bf665f41373a81ca (patch) | |
tree | 8871e64a5bbf0383be950bfd55d613832a3f4b51 /crypto/x509v3/pcy_data.c | |
parent | 56456c3404b0ec27f93816d951ff7a58827481f0 (diff) |
Coverity Fixes
x_algor.c: Explicit null dereferenced
cms_sd.c: Resource leak
ts_rsp_sign.c Resource Leak
extensions_srvr.c: Resourse Leak
v3_alt.c: Resourse Leak
pcy_data.c: Resource Leak
cms_lib.c: Resource Leak
drbg_lib.c: Unchecked return code
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12531)
Diffstat (limited to 'crypto/x509v3/pcy_data.c')
-rw-r--r-- | crypto/x509v3/pcy_data.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/x509v3/pcy_data.c b/crypto/x509v3/pcy_data.c index 0735059513..62db3b48e2 100644 --- a/crypto/x509v3/pcy_data.c +++ b/crypto/x509v3/pcy_data.c @@ -52,6 +52,7 @@ X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, ret = OPENSSL_zalloc(sizeof(*ret)); if (ret == NULL) { X509V3err(X509V3_F_POLICY_DATA_NEW, ERR_R_MALLOC_FAILURE); + ASN1_OBJECT_free(id); return NULL; } ret->expected_policy_set = sk_ASN1_OBJECT_new_null(); |