Closed
Bug 603366
Opened 14 years ago
Closed 14 years ago
NewCompartment leaks compartment when compartment->init() fails
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: timeless)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, memory-leak, Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
567 bytes,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
2761 NewCompartment(JSContext *cx, JSPrincipals *principals) 2762 { 2763 JSRuntime *rt = cx->runtime; 2764 JSCompartment *compartment = new JSCompartment(rt); 2765 if (!compartment || !compartment->init()) { 2766 JS_ReportOutOfMemory(cx); 2767 return NULL;
Updated•14 years ago
|
Attachment #482496 -
Flags: review?(gal) → review+
Updated•14 years ago
|
Keywords: checkin-needed
Comment 2•14 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/db22166063a0
Keywords: checkin-needed
Whiteboard: fixed-in-tracemonkey
Comment 3•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/db22166063a0
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•