Closed Bug 93450 Opened 23 years ago Closed 23 years ago

memory/resource leak of global CERT locks

Categories

(NSS :: Libraries, defect, P2)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED

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()
Assigned the bug to Bob.
Assignee: wtc → relyea
Makring NEW> thanks for the patch jeff
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: mlk, patch, perf, review
Priority: -- → P2
Target Milestone: --- → 3.4
Changed the QA contact to Bishakha.
QA Contact: sonja.mirtitsch → bishakhabanerjee
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.