Closed
Bug 93450
Opened 23 years ago
Closed 23 years ago
memory/resource leak of global CERT locks
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.4
People
(Reporter: jeff, Assigned: rrelyea)
References
Details
(Keywords: memory-leak, perf)
nss/lib/certdb/{certdb.c,pcertdb.c} leak the static global
locks "certTrustLock", "certRefCountLock", and "dbLock".
consider adding the following to certdb.c:
void CERT_DeleteGlobalLocks(void)
{
if (certTrustLock)
{
PZ_DestroyLock(certTrustLock);
certTrustLock = NULL;
}
if (certRefCountLock)
{
PZ_DestroyLock(certRefCountLock);
certRefCountLock = NULL;
}
}
and the following to pcertdb.c:
void CERT_Shutdown(CERTCertDBHandle * handle)
{
if (dbLock)
{
PZ_DestroyLock(dbLock);
dbLock = NULL;
}
}
and adding calls to them to nss/lib/nss/nssinit.c::NSS_Shutdown()
Comment 2•23 years ago
|
||
Makring NEW> thanks for the patch jeff
Depends on: 104741
Updated•23 years ago
|
Priority: -- → P2
Target Milestone: --- → 3.4
Comment 3•23 years ago
|
||
Changed the QA contact to Bishakha.
QA Contact: sonja.mirtitsch → bishakhabanerjee
Assignee | ||
Comment 4•23 years ago
|
||
This code is checked into 3.4, though the relavent code has moved to the
softoken (which is the only place the databases are ever referenced.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•