mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
fix memory leak when ignoring test error/failure
This commit is contained in:
@@ -111,11 +111,11 @@ void TestCase::run(TestResult *result)
|
||||
result->startTest(this);
|
||||
|
||||
setUp();
|
||||
try
|
||||
try
|
||||
{
|
||||
runTest();
|
||||
}
|
||||
catch (CppUnitException& e)
|
||||
catch (CppUnitException& e)
|
||||
{
|
||||
CppUnitException* copy = new CppUnitException(e);
|
||||
result->addFailure(this, copy);
|
||||
@@ -126,7 +126,6 @@ void TestCase::run(TestResult *result)
|
||||
msg.append(": ");
|
||||
msg.append(e.what());
|
||||
result->addError(this, new CppUnitException(msg));
|
||||
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user