summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-02-05 22:03:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-02-05 22:03:38 (GMT)
commit17f591f2230ac66394467d5e5eefe71cb259637d (patch)
tree1664e994b2904e5e9009027fc57749a11667365b /src/common
parentff187d24b7441e88e1f0361d59b0f6f55851791f (diff)
Fixed a huge number of memory leaks.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/xml.c2
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;