summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-02 20:01:21 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-02 20:01:25 +0200
commitfb2056c6f5c3dcbf2cd44518a7c658471607bb2d (patch)
tree08478a071d7b7bb33f35c933819ff96fede47e64
parent8ede779516df565619052f42c87b54cc055021bd (diff)
Revert "eval: release root scope after finishing the execution"
This reverts commit 206630d7141f32594e9110081f6710446f5aebd3. Revert this commit to fix a double-free. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--eval.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 2d4e632..a54e993 100644
--- a/eval.c
+++ b/eval.c
@@ -1797,7 +1797,6 @@ 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);