From d9686e701af48261c10ece8d33a9dc1e3a273eee Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 8 Jun 2018 08:07:12 +0000 Subject: [PATCH] Fix: Free temp memory --- src/reportxml.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reportxml.c b/src/reportxml.c index 9767bb01..49da67f6 100644 --- a/src/reportxml.c +++ b/src/reportxml.c @@ -802,6 +802,8 @@ reportxml_node_t * reportxml_database_build_node(reportxml_database_t *db, if (template) { reportxml_node_t *tpl = reportxml_database_build_node(db, template, depth - 1); + free(template); + if (tpl) { ret = reportxml_node_copy(tpl); refobject_unref(tpl);