Closed
Bug 566367
Opened 15 years ago
Closed 12 years ago
JM: RAII for compiler temporary memory
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: dmandelin, Unassigned)
References
Details
The compiler allocates various things internally. The way it is now, we can leak memory when compilation fails.
We should create a discipline for allocating these things in RAII style, so that we easily avoid leaking. Some simple smart pointers to use inside JS would probably work well. They would just have to start with no pointer, and then free any pointer value they have in the destructor.
Comment 1•12 years ago
|
||
JM removed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•