[PATCH 5/9] test: Fix memory leak in testParseXMLDocFromFile