Closed
Bug 95773
Opened 25 years ago
Closed 25 years ago
memory leak in prenv.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 is a static lock variable allocated but not deleted in prenv.c
add the following to nsprpub/pr/src/misc/prenv.c and call it from
PR_Cleanup() (see the "XXX:..." comment near the bottom of the function)
void _PR_CleanupEnv(void)
{
// TODO should make this a _PR_DELETE_LOCK_ENV() macro.
if (_pr_envLock)
{
PR_DestroyLock(_pr_envLock);
_pr_envLock = NULL;
}
}
Comment 1•25 years ago
|
||
Marking NEW thanks for the patch.
| Assignee | ||
Comment 2•25 years ago
|
||
| Assignee | ||
Comment 3•25 years ago
|
||
Fix checked in on the tip of NSPR.
Status: NEW → RESOLVED
Closed: 25 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
•