Open Bug 289711 Opened 20 years ago Updated 2 years ago

Memory Leak: _PR_MD_INIT_THREAD (w95thred.c): DuplicateHandle - never closed.

Categories

(NSPR :: NSPR, defect)

x86
Windows 2000
defect

Tracking

(Not tracked)

People

(Reporter: itay.perl, Unassigned)

Details

(Keywords: memory-leak)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050409 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050409 Firefox/1.0+

in mozilla\nsprpub\pr\src\md\windows\w95thred.c:
Lines 94-102: DuplicateHandle creates the handle thread->md.handle, which is
never  closed.

Recommendation: In mozilla\nsprpub\pr\src\threads\combined\pruthr.c:
Add line: CloseHandle(thread->md.handle);
to PR_DestroyThread (around line 343).

Reproducible: Always

Steps to Reproduce:




Leak detected with BoundsChecker 7.2.0
I hope NSPR is the right place..
QA Contact: wtchang → nspr
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Severity: normal → S3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.