diff options
author | Norman Ashley <nashley@cisco.com> | 2020-08-04 04:34:22 +0200 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-08-04 04:34:22 +0200 |
commit | 19b4e6f8feba9aeec5d4e0d0aacb11d143b59340 (patch) | |
tree | ddf819bd415b3b7121d769e5ae6e3f14628abc19 /crypto/x509 | |
parent | Change the provider implementation of X942kdf to use wpacket to do der encodi... (diff) | |
download | openssl-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.c | 1 |
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; } |