diff options
author | Richard Levitte <levitte@openssl.org> | 2000-08-12 00:50:08 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-08-12 00:50:08 +0200 |
commit | 5ce42a7e68956b313bc98e85e843d561fb06b6e9 (patch) | |
tree | 4971336b723f5fe0926d4272412ac9070d48ee69 /apps | |
parent | Memory leaks fix. There seems to be more in other parts of OpenSSL... (diff) | |
download | openssl-5ce42a7e68956b313bc98e85e843d561fb06b6e9.tar.xz openssl-5ce42a7e68956b313bc98e85e843d561fb06b6e9.zip |
Memory leaks fix. It now looks like all memory leaks, at least around
building complete chains, are gone.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pkcs12.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c index d7b5b47603..963797155f 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -426,6 +426,7 @@ int MAIN(int argc, char **argv) } } if(!keyidlen) { + ucert = NULL; BIO_printf(bio_err, "No certificate matches private key\n"); goto export_end; } @@ -588,6 +589,7 @@ int MAIN(int argc, char **argv) if (certs) sk_X509_pop_free(certs, X509_free); if (safes) sk_PKCS7_pop_free(safes, PKCS7_free); if (bags) sk_PKCS12_SAFEBAG_pop_free(bags, PKCS12_SAFEBAG_free); + if (ucert) X509_free(ucert); #ifdef CRYPTO_MDEBUG CRYPTO_pop_info(); |