commit | 9350901b5c8cceeaf9e6e41eab7a58b105156119 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Nov 13 10:26:09 2020 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Nov 13 10:26:09 2020 +0100 |
tree | 2ffd0c9c1700184b1d57efe17b75a2defb4fea11 | |
parent | ad92b67196b99c3bb03c484d504639fcec6b2dac [diff] [blame] |
json parser BUGFIX memory leak
diff --git a/src/parser_json.c b/src/parser_json.c index ad531e0..cc59ff4 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -1338,6 +1338,7 @@ LOGVAL(ctx, LY_VLOG_LINE, &line, LYVE_SYNTAX_JSON, "Expected top-level JSON object, but %s found.", lyjson_token2str(*status)); *lydctx_p = NULL; + lyd_json_ctx_free((struct lyd_ctx *)lydctx); return LY_EVALID; } }