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)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED

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);
Assigned the bug to Bob.
Assignee: wtc → relyea
Another patch.. Missed this one sorry..Thanks jeff..
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: mlk, patch, perf, review
Priority: -- → P2
Target Milestone: --- → 3.4
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.