Skip to content

Commit

Permalink
quickjs: free modules if evaluation failed
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 8, 2023
1 parent 6b73cc5 commit 88ac91e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deps/quickjs/src/quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -28376,6 +28376,7 @@ static JSValue js_evaluate_module(JSContext *ctx, JSModuleDef *m)
ret_val = js_evaluate_module(ctx, m1);
if (JS_IsException(ret_val)) {
m->eval_mark = FALSE;
js_free_modules(ctx, JS_FREE_MODULE_NOT_EVALUATED);
goto clean;
}
if (!JS_IsUndefined(ret_val)) {
Expand Down

0 comments on commit 88ac91e

Please sign in to comment.