Closed
Bug 95668
Opened 23 years ago
Closed 23 years ago
memory leak in pruthr.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)
there are a bunch of static variables that are initialized in _PR_InitThreads() that are never freed/destroyed. consider adding the following to nsprpub/pr/src/threads/combined/pruthr.c and calling it from PR_Cleanup() (see the "XXX: ..." comment near the bottom). #if 1//begin JLH added () void _PR_CleanupThreads(void) { if (_pr_terminationCVLock) { PR_DestroyLock(_pr_terminationCVLock); _pr_terminationCVLock = NULL; } if (_pr_activeLock) { PR_DestroyLock(_pr_activeLock); _pr_activeLock = NULL; } if (_pr_primordialExitCVar) { PR_DestroyCondVar(_pr_primordialExitCVar); _pr_primordialExitCVar = NULL; } if (_pr_deadQLock) { PR_DestroyLock(_pr_deadQLock); _pr_deadQLock = NULL; } // TODO see if _pr_dead{Native,User}Q need to be deleted } #endif//end JLH added ()
Comment 1•23 years ago
|
||
Dude you kick ass :) Nuff said :)
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
•