diff --git a/tests/xmltester/XMLTester.cpp b/tests/xmltester/XMLTester.cpp index 8e238ac1f3..4bd67edef3 100644 --- a/tests/xmltester/XMLTester.cpp +++ b/tests/xmltester/XMLTester.cpp @@ -703,6 +703,8 @@ XMLTester::parseCase(const tinyxml2::XMLNode* node) std::cout << *curr_file << ":"; std::cout << " case" << caseCount << ":"; std::cout << " skipped (" << thrownException << ")." << std::endl; + if (gA) delete gA; + if (gB) delete gB; return; }