summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-02 17:30:43 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-02 19:19:32 +0200
commit206630d7141f32594e9110081f6710446f5aebd3 (patch)
treecaa3ae2c780327928fd1332930306a08d57ddd2e
parentd49f59e31488bdf5992638e7cb84e8d8e4367372 (diff)
eval: release root scope after finishing the execution
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index d3151e6..5c98ac6 100644
--- a/eval.c
+++ b/eval.c
@@ -1833,6 +1833,7 @@ ut_run(struct ut_state *state, struct json_object *env, struct json_object *modu
rv = ut_invoke(state, state->main, NULL, entry, args);
out:
+ json_object_put(scope);
json_object_put(entry);
json_object_put(args);
json_object_put(rv);