nsHashtable::Exists doesn't unlock mLock if !mHashtable.ops

RESOLVED FIXED

Status

()

Core
XPCOM
--
critical
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: timeless, Assigned: timeless)

Tracking

({coverity, hang})

Trunk
coverity, hang
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Assignee)

Description

9 years ago
187 PRBool nsHashtable::Exists(nsHashKey *aKey)
189     if (mLock) PR_Lock(mLock);
190 
191     if (!mHashtable.ops)
192         return PR_FALSE;

199     if (mLock) PR_Unlock(mLock);
201     return exists;
202 }
(Assignee)

Comment 1

9 years ago
Created attachment 390296 [details] [diff] [review]
note that the auto classes don't work here
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #390296 - Flags: review?(benjamin)

Updated

9 years ago
Attachment #390296 - Flags: review?(benjamin) → review+
(Assignee)

Comment 2

9 years ago
http://hg.mozilla.org/mozilla-central/rev/f7dae5b49720
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.