summaryrefslogtreecommitdiffhomepage
path: root/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index cb6f438..85825b8 100644
--- a/ast.c
+++ b/ast.c
@@ -262,7 +262,7 @@ ut_reset(struct ut_state *s)
s->off = 0;
if (s->error.code == UT_ERROR_EXCEPTION)
- json_object_put(s->error.info.exception);
+ free(s->error.info.exception.message);
memset(&s->error, 0, sizeof(s->error));
}