mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
Bug 957: if_assert_failed in ecmascript_put_interpreter.
[ Forward ported from commit 566039624f9cd823dba0618412efc53212a575bf in ELinks 0.11.3.GIT. --KON ]
This commit is contained in:
parent
c1e89ee375
commit
1ea44dcda5
@ -141,6 +141,10 @@ ecmascript_put_interpreter(struct ecmascript_interpreter *interpreter)
|
|||||||
{
|
{
|
||||||
assert(interpreter);
|
assert(interpreter);
|
||||||
assert(interpreter->backend_nesting == 0);
|
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
|
#ifdef CONFIG_ECMASCRIPT_SEE
|
||||||
see_put_interpreter(interpreter);
|
see_put_interpreter(interpreter);
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user