commit | cc53c58ad6e9818089edeeb76f29c3f2f3bc211b | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Fri Apr 01 12:07:44 2022 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Apr 01 12:08:49 2022 +0200 |
tree | baf66e659d8685dec6637194e9ea58fc8e19ccd4 | |
parent | 27f536f5e9c90f1ce8de4fae64725bb62bbaef2f [diff] |
parser xml BUGFIX memory leak
diff --git a/src/parser_xml.c b/src/parser_xml.c index 3ce2611..69d1b45 100644 --- a/src/parser_xml.c +++ b/src/parser_xml.c
@@ -744,6 +744,7 @@ while (xmlctx->status == LYXML_ELEMENT) { ret = lydxml_subtree_r(lydctx, NULL, &anchor, NULL); if (ret) { + lyd_free_siblings(anchor); break; } }