diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-03-05 00:06:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-03-05 00:06:47 +0000 |
commit | 3380c52f150fbf4bbfc098b515ff7d67086c4ddd (patch) | |
tree | 70eee7cf4460e02d2ce3ccf0c737bdbcd0bf585f /crypto/x509v3 | |
parent | 1364e6f1ac1d0aec831b936bc5cfc83211e74495 (diff) |
Stop memory leak.
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_pci.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/crypto/x509v3/v3_pci.c b/crypto/x509v3/v3_pci.c index 5158b1dfb3..601211f416 100644 --- a/crypto/x509v3/v3_pci.c +++ b/crypto/x509v3/v3_pci.c @@ -286,12 +286,6 @@ static PROXY_CERT_INFO_EXTENSION *r2i_pci(X509V3_EXT_METHOD *method, X509V3err(X509V3_F_R2I_PCI,ERR_R_MALLOC_FAILURE); goto err; } - pci->proxyPolicy = PROXY_POLICY_new(); - if (!pci->proxyPolicy) - { - X509V3err(X509V3_F_R2I_PCI,ERR_R_MALLOC_FAILURE); - goto err; - } pci->proxyPolicy->policyLanguage = language; language = NULL; pci->proxyPolicy->policy = policy; policy = NULL; @@ -301,11 +295,6 @@ err: if (language) { ASN1_OBJECT_free(language); language = NULL; } if (pathlen) { ASN1_INTEGER_free(pathlen); pathlen = NULL; } if (policy) { ASN1_OCTET_STRING_free(policy); policy = NULL; } - if (pci && pci->proxyPolicy) - { - PROXY_POLICY_free(pci->proxyPolicy); - pci->proxyPolicy = NULL; - } if (pci) { PROXY_CERT_INFO_EXTENSION_free(pci); pci = NULL; } end: sk_CONF_VALUE_pop_free(vals, X509V3_conf_free); |