Closed
Bug 95784
Opened 23 years ago
Closed 23 years ago
memory leak in prlayer.c
Categories
(NSPR :: NSPR, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
4.2
People
(Reporter: jeff, Assigned: wtc)
References
Details
(Keywords: memory-leak)
Attachments
(1 file)
the identity_cache is not deleted. consider adding the following function to nsprpub/pr/src/io/prlayer.c and calling it from PR_Cleanup(). void _PR_CleanupLayerCache(void) { if (identity_cache.ml) { PR_DestroyLock(identity_cache.ml); identity_cache.ml = NULL; } if (identity_cache.name) { int k; for (k=0; k<identity_cache.length; k++) if (identity_cache.name[k]) PR_DELETE(identity_cache.name[k]); PR_DELETE(identity_cache.name); identity_cache.name = NULL; } }
Comment 1•23 years ago
|
||
Adding keywords...thanks for the patch.
Assignee | ||
Comment 2•23 years ago
|
||
Assignee | ||
Comment 3•23 years ago
|
||
Fix checked in on the tip of NSPR.
Status: NEW → RESOLVED
Closed: 23 years ago
Priority: -- → P2
Resolution: --- → FIXED
Target Milestone: --- → 4.2
You need to log in
before you can comment on or make changes to this bug.
Description
•