From: Fabrice Bellard Date: Wed, 9 Jul 2025 12:39:19 +0000 (+0200) Subject: removed module leak in js_std_eval_binary() (#425) X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/stylesheets/print.css?a=commitdiff_plain;h=1fdc768fdc8571300755cdd3e4654ce99c0255ce;p=quickjs.git removed module leak in js_std_eval_binary() (#425) --- diff --git a/quickjs-libc.c b/quickjs-libc.c index 023d895..54a7a15 100644 --- a/quickjs-libc.c +++ b/quickjs-libc.c @@ -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) {