diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-17 12:55:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-17 20:52:11 +0200 |
commit | 870f8bef3c52cca36afe4fcd48c1beec104082cb (patch) | |
tree | 233add31d3f3dc9c7ac1f39e5d9f26e0ddde9f9a /xmlsecurity | |
parent | eb510f21572a35c89ae57ca060a02439e572cbd0 (diff) |
dont leak slot-list in updateSlots
Change-Id: I8882dbd2b5ad7656ec5ff7d47fb2e3dcbcceb5e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115700
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx index cf084c7137ad..dd57a28be6da 100644 --- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx @@ -249,8 +249,6 @@ void SecurityEnvironment_NssImpl::updateSlots() // continue; // } addCryptoSlot(pSlot); - PK11_FreeSlot( pSlot ) ; - pSlot = nullptr; if (pSymKey != nullptr) { @@ -261,6 +259,8 @@ void SecurityEnvironment_NssImpl::updateSlots() }// end of if(pSlot != NULL) }// end of for + + PK11_FreeSlotList(soltList); } Sequence< Reference < XCertificate > > |