diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-02-05 22:03:38 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-02-05 22:03:38 (GMT) |
commit | 17f591f2230ac66394467d5e5eefe71cb259637d (patch) | |
tree | 1664e994b2904e5e9009027fc57749a11667365b /src/common | |
parent | ff187d24b7441e88e1f0361d59b0f6f55851791f (diff) |
Fixed a huge number of memory leaks.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/xml.c b/src/common/xml.c index 0bd4d86..aaed2ea 100644 --- a/src/common/xml.c +++ b/src/common/xml.c @@ -1037,6 +1037,8 @@ xmlNodePtr ensure_node_exist(xmlDocPtr xdoc, xmlXPathContextPtr context, const c iter = get_node_from_xpath(context, iter_path); + free(iter_path); + if (iter == NULL) break; else last = iter; |