Closed
Bug 603366
Opened 15 years ago
Closed 15 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•15 years ago
|
Attachment #482496 -
Flags: review?(gal) → review+
Updated•15 years ago
|
Keywords: checkin-needed
Comment 2•15 years ago
|
||
Keywords: checkin-needed
Whiteboard: fixed-in-tracemonkey
Comment 3•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•