From: Richard Levitte Date: Fri, 11 Aug 2000 22:50:08 +0000 (+0000) Subject: Memory leaks fix. It now looks like all memory leaks, at least around X-Git-Tag: OpenSSL-engine-0_9_6-beta1~12^2~67 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=5ce42a7e68956b313bc98e85e843d561fb06b6e9 Memory leaks fix. It now looks like all memory leaks, at least around building complete chains, are gone. --- 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();