From 40d4b5ca27e73c697363b805d0e1fde85276b46e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 20 Sep 2020 20:48:42 +0200 Subject: ast: fix context value leak Free any remaining context value when freeing the runtime state. Signed-off-by: Jo-Philipp Wich --- ast.c | 2 ++ 1 file changed, 2 insertions(+) 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]); -- cgit v1.2.3