mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-30 03:26:23 -04:00
Bug 957: if_assert_failed in ecmascript_put_interpreter.
[ Forward ported from commit 566039624f
in ELinks 0.11.3.GIT. --KON ]
This commit is contained in:
parent
47762bd388
commit
e2ce792ec9
@ -140,6 +140,10 @@ ecmascript_put_interpreter(struct ecmascript_interpreter *interpreter)
|
||||
{
|
||||
assert(interpreter);
|
||||
assert(interpreter->backend_nesting == 0);
|
||||
/* If the assertion fails, it is better to leak the
|
||||
* interpreter than to corrupt memory. */
|
||||
if_assert_failed return;
|
||||
|
||||
#ifdef CONFIG_ECMASCRIPT_SEE
|
||||
see_put_interpreter(interpreter);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user