mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-27 05:38:45 +03:00
removed module leak in js_std_eval_binary() (#425)
This commit is contained in:
parent
458c34d29d
commit
1fdc768fdc
@ -4300,6 +4300,7 @@ void js_std_eval_binary(JSContext *ctx, const uint8_t *buf, size_t buf_len,
|
||||
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
|
||||
js_module_set_import_meta(ctx, obj, FALSE, FALSE);
|
||||
}
|
||||
JS_FreeValue(ctx, obj);
|
||||
} else {
|
||||
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
|
||||
if (JS_ResolveModule(ctx, obj) < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user