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

UNCONFIRMED
Assigned to

Status

NSPR
NSPR
UNCONFIRMED
13 years ago
10 years ago

People

(Reporter: Itay Perl, Assigned: Wan-Teh Chang)

Tracking

({mlk})

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
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
(Reporter)

Comment 1

13 years ago
I hope NSPR is the right place..
QA Contact: wtchang → nspr
Keywords: mlk
You need to log in before you can comment on or make changes to this bug.