summaryrefslogtreecommitdiff
path: root/xmlsecurity/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-19 15:55:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-19 18:17:11 +0200
commit928ce6043523a70d056d15210296d627d6223c2f (patch)
tree90ba80ae9aaae28457db965d1b912d73d524e03f /xmlsecurity/source
parent585948aadf10f6eab7d716857fc671da2d421318 (diff)
fix leak in verifyCertificate
Change-Id: I49dd9e0de9b3e44186ed90f00aeb88dad4736374 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115814 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r--xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index d7e85f577cbf..081d37e0a01d 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
@@ -716,6 +716,7 @@ verifyCertificate( const Reference< csss::XCertificate >& aCert,
SAL_INFO("xmlsecurity.xmlsec", "Destroying temporary certificate");
CERT_DestroyCertificate(tmpCert);
}
+ PORT_FreeArena(log.arena, true);
return validity ;
}