Closed
Bug 96272
Opened 23 years ago
Closed 23 years ago
another memory leak in pcertdb.c
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.4
People
(Reporter: jeff, Assigned: rrelyea)
References
Details
(Keywords: memory-leak, perf)
see also bug 93412, bug 93450, and bug 93485.
we also need to free handle->dbMon in CERT_Shutdown().
#if 1//begin JLH added (93412)
void CERT_Shutdown(CERTCertDBHandle * handle)
{
if ( handle->tempCertDB ) {
certdb_Close(handle->tempCertDB);
handle->tempCertDB = 0;
}
#if 1//begin JLH added (93450)
if (dbLock)
{
PZ_DestroyLock(dbLock);
dbLock = NULL;
}
#endif//end JLH added (93450)
#if 1//begin JLH added (93485)
if (handle->spkDigestInfo)
{
SPKDigestInfo *spkDigestInfo = handle->spkDigestInfo;
if (spkDigestInfo->table)
{
PL_HashTableDestroy(spkDigestInfo->table);
}
PORT_Free(spkDigestInfo);
handle->spkDigestInfo = NULL;
}
#endif//end JLH added (93485)
#if 1//begin JLH added (<this_bug>)
if (handle->dbMon)
{
PZ_DestroyMonitor(handle->dbMon);
handle->dbMon = NULL;
}
#endif//end JLH added (<this_bug>)
}
#endif//end JLH added (93412)
Comment 1•23 years ago
|
||
Whoohoo...Marking NEW. thanks again.
Comment 2•23 years ago
|
||
Assigned the bug to Bob.
Assignee: wtc → relyea
Priority: -- → P2
Target Milestone: --- → 3.4
Assignee | ||
Comment 3•23 years ago
|
||
fixed in NSS 3.4
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
•