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 85825b8..cb6f438 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)
- free(s->error.info.exception.message);
+ json_object_put(s->error.info.exception);
memset(&s->error, 0, sizeof(s->error));
}