summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-19 23:58:29 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-19 23:58:29 +0200
commit3fe96c552080619a02e6fa0b085c2b1ad32805b6 (patch)
tree8e1033451b7dc490940237bea00db72388f4df36
parent8acdbeb8e5ac3754173d811382a1e2da0ac7037d (diff)
eval: fix memory leak in ut_execute_local()
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 0525bab..de0b24e 100644
--- a/eval.c
+++ b/eval.c
@@ -427,6 +427,7 @@ ut_execute_local(struct ut_state *state, uint32_t off)
if (ut_is_type(val, T_EXCEPTION))
return val;
+ json_object_put(rv);
rv = ut_setval(state->scope->scope, label, val);
}
}