summaryrefslogtreecommitdiffstats
path: root/tdeio/kssl/ksslcertificate.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-10-23 01:25:39 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-10-23 01:26:02 -0500
commit9bf244dd97e89bf47dd70fe47a4f00a3f372f875 (patch)
tree206670e64666e3bbe48b8adbbbabb683b7267dfb /tdeio/kssl/ksslcertificate.cc
parent912e4866efdedea1a936c30ceb80d5d6df8d263d (diff)
downloadtdelibs-9bf244dd97e89bf47dd70fe47a4f00a3f372f875.tar.gz
tdelibs-9bf244dd97e89bf47dd70fe47a4f00a3f372f875.zip
Fix memory leak when deleting a KSSLCertificate that holds a CRL
Diffstat (limited to 'tdeio/kssl/ksslcertificate.cc')
-rw-r--r--tdeio/kssl/ksslcertificate.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/tdeio/kssl/ksslcertificate.cc b/tdeio/kssl/ksslcertificate.cc
index 95e0866ca..e94681800 100644
--- a/tdeio/kssl/ksslcertificate.cc
+++ b/tdeio/kssl/ksslcertificate.cc
@@ -118,8 +118,12 @@ KSSLCertificate::KSSLCertificate(const KSSLCertificate& x) {
KSSLCertificate::~KSSLCertificate() {
#ifdef KSSL_HAVE_SSL
- if (d->m_cert)
+ if (d->m_cert) {
d->kossl->X509_free(d->m_cert);
+ }
+ if (d->m_cert_crl) {
+ d->kossl->X509_CRL_free(d->m_cert_crl);
+ }
#endif
delete d;
}