mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-27 05:38:45 +03:00
Fix crash on failure to read bytecode (penneryu)
This commit is contained in:
parent
9f6c190731
commit
391cd3feff
@ -34924,6 +34924,7 @@ static void free_function_bytecode(JSRuntime *rt, JSFunctionBytecode *b)
|
|||||||
JS_AtomGetStrRT(rt, buf, sizeof(buf), b->func_name));
|
JS_AtomGetStrRT(rt, buf, sizeof(buf), b->func_name));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if (b->byte_code_buf)
|
||||||
free_bytecode_atoms(rt, b->byte_code_buf, b->byte_code_len, TRUE);
|
free_bytecode_atoms(rt, b->byte_code_buf, b->byte_code_len, TRUE);
|
||||||
|
|
||||||
if (b->vardefs) {
|
if (b->vardefs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user