summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index cb6f438..498f40e 100644
--- a/ast.c
+++ b/ast.c
@@ -273,6 +273,8 @@ ut_free(struct ut_state *s)
size_t n;
if (s) {
+ json_object_put(s->ctx);
+
while (s->stack.off > 0)
json_object_put(s->stack.scope[--s->stack.off]);