Open GoogleCodeExporter opened 9 years ago
Any other information?
Where is the leak? What code do you run that produces the leak?
Does this bit of code fix the problem?
Original comment by pur3m...@googlemail.com
on 29 Dec 2011 at 3:42
[deleted comment]
When a CScriptException throwed at match function, the memory allocated to
'contents' can not be freed.
And I found several memory leak on catch statement, because the catched
exception is not freed yet.
Please see blow statements.
try {
throw new CScriptException("one");
}
catch (CScriptException* e) {
throw new CScriptException("other");
}
Hope for your reply.Thanks.
Original comment by zhoujr.m...@gmail.com
on 29 Dec 2011 at 4:56
Hi, Thanks for your information.
This is definitely a problem, and we could hopefully solve it be surrounding
each call in the interpreter with a try...finally.
However at the moment I feel this is very low priority - exceptions should be
just that - an exception, so if a program is running correctly, then there
should be no memory leaks.
Original comment by pur3m...@googlemail.com
on 5 Jan 2012 at 3:02
Yes. So it is. I am working on Symbian platform, and a little memory leak can
not be tolerated.
Original comment by zhoujr.m...@gmail.com
on 6 Jan 2012 at 1:54
Original issue reported on code.google.com by
zhoujr.m...@gmail.com
on 27 Dec 2011 at 10:14