From 894b34bad7f9d5cf3a4316ea64799a53f8934a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Thu, 29 Feb 2024 17:09:08 +0100 Subject: [PATCH] Delete runtime exports on teardown --- src/runtime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runtime.c b/src/runtime.c index 6996c87..592dd19 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -1129,6 +1129,9 @@ bare_runtime_teardown (bare_runtime_t *runtime, int *exit_code) { bare_runtime_on_teardown(runtime, exit_code); + err = js_delete_reference(runtime->env, runtime->exports); + assert(err == 0); + err = js_destroy_env(runtime->env); assert(err == 0);