Skip to content

Commit 1fdc768

Browse files
author
Fabrice Bellard
committed
removed module leak in js_std_eval_binary() (#425)
1 parent 458c34d commit 1fdc768

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quickjs-libc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4300,6 +4300,7 @@ void js_std_eval_binary(JSContext *ctx, const uint8_t *buf, size_t buf_len,
43004300
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
43014301
js_module_set_import_meta(ctx, obj, FALSE, FALSE);
43024302
}
4303+
JS_FreeValue(ctx, obj);
43034304
} else {
43044305
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
43054306
if (JS_ResolveModule(ctx, obj) < 0) {

0 commit comments

Comments
 (0)