commit | f8ebf1336545d8cc87a8657b86d1d186d3f9f1bf | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Nov 21 14:06:48 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Nov 21 15:59:17 2022 +0100 |
tree | cb99a3207143c2b2ae49bd74a8ed90481e3f706b | |
parent | 276531601880ffd4d687fc69acfca9f0d4ea4adb [diff] [blame] |
log UPDATE input logging cleared and updated
diff --git a/src/parser_json.c b/src/parser_json.c index 2565c12..341fd7e 100644 --- a/src/parser_json.c +++ b/src/parser_json.c
@@ -1796,6 +1796,10 @@ lyd_json_ctx_free((struct lyd_ctx *)lydctx); } else { *lydctx_p = (struct lyd_ctx *)lydctx; + + /* the JSON context is no more needed, freeing it also stops logging line numbers which would be confusing now */ + lyjson_ctx_free(lydctx->jsonctx); + lydctx->jsonctx = NULL; } return rc; }