diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-20 20:48:42 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-20 20:48:42 +0200 |
commit | 40d4b5ca27e73c697363b805d0e1fde85276b46e (patch) | |
tree | 5ec108c12ca255c5edbe098f35f7849d896ea30c | |
parent | 4410e14919de62ca8af35194b8a1ecfe74c5c624 (diff) |
ast: fix context value leak
Free any remaining context value when freeing the runtime state.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | ast.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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]); |