Closed
Bug 93412
Opened 24 years ago
Closed 23 years ago
memory leak of CERT tempCertDb and handle by NSS
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.4
People
(Reporter: jeff, Assigned: rrelyea)
References
Details
(Keywords: memory-leak, perf)
The memory-based certificate database is not closed/deleted
resulting in a significant amount of memory being leaked.
also, the global CERTCertDBHandle used by nssinit to set the
default CERT db is never freed.
consider adding the following function to nss/lib/certdb/pcertdb.c:
void CERT_Shutdown(CERTCertDBHandle * handle)
{
if ( handle->tempCertDB ) {
certdb_Close(handle->tempCertDB);
handle->tempCertDB = 0;
}
}
and adding the following to nss/lib/nss/nssinit.c::NSS_Shutdown()
certHandle = CERT_GetDefaultCertDB();
if (certHandle)
+ {
CERT_ClosePermCertDB(certHandle);
+ CERT_Shutdown(certHandle);
+ PORT_Free(certHandle);
+ }
CERT_SetDefaultCertDB(NULL);
Comment 2•23 years ago
|
||
Another patch.. Missed this one sorry..Thanks jeff..
Depends on: 104741
Updated•23 years ago
|
Priority: -- → P2
Target Milestone: --- → 3.4
Assignee | ||
Comment 3•23 years ago
|
||
Fixed in NSS 3.4
BTW, Jeff do you want your name added to the contributer's list in the NSS
files that contain your patches (or patches derived from yours)?
bob
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
•