summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/source/xmltesttools.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx
index 143819cc6c5b..b0e4cf48e989 100644
--- a/test/source/xmltesttools.cxx
+++ b/test/source/xmltesttools.cxx
@@ -303,6 +303,7 @@ void XmlTestTools::assertXPathNodeName(const xmlDocUniquePtr& pXmlDoc, const OSt
xmlNodePtr pXmlNode = pXmlNodes->nodeTab[0];
CPPUNIT_ASSERT_EQUAL_MESSAGE(OString(OString::Concat("In XPath '" + rXPath + "' name of node is incorrect")).getStr(),
rExpectedName, oconvert(pXmlNode->name));
+ xmlXPathFreeObject(pXmlObj);
}
void XmlTestTools::registerODFNamespaces(xmlXPathContextPtr& pXmlXpathCtx)