summaryrefslogtreecommitdiffstats
path: root/crypto/x509
diff options
context:
space:
mode:
authorNorman Ashley <nashley@cisco.com>2020-08-04 04:34:22 +0200
committerShane Lontis <shane.lontis@oracle.com>2020-08-04 04:34:22 +0200
commit19b4e6f8feba9aeec5d4e0d0aacb11d143b59340 (patch)
treeddf819bd415b3b7121d769e5ae6e3f14628abc19 /crypto/x509
parentChange the provider implementation of X942kdf to use wpacket to do der encodi... (diff)
downloadopenssl-19b4e6f8feba9aeec5d4e0d0aacb11d143b59340.tar.xz
openssl-19b4e6f8feba9aeec5d4e0d0aacb11d143b59340.zip
Coverity Fixes for issue #12531
Fixes #12531 on master branch. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12557)
Diffstat (limited to 'crypto/x509')
-rw-r--r--crypto/x509/pcy_data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/x509/pcy_data.c b/crypto/x509/pcy_data.c
index 966b0b2ecb..6b509cf457 100644
--- a/crypto/x509/pcy_data.c
+++ b/crypto/x509/pcy_data.c
@@ -54,6 +54,7 @@ X509_POLICY_DATA *policy_data_new(POLICYINFO *policy,
id = NULL;
ret = OPENSSL_zalloc(sizeof(*ret));
if (ret == NULL) {
+ ASN1_OBJECT_free(id);
X509V3err(X509V3_F_POLICY_DATA_NEW, ERR_R_MALLOC_FAILURE);
return NULL;
}