mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
fix memory leak when ignoring test error/failure
This commit is contained in:
@@ -126,6 +126,7 @@ void TextTestResult::addError(Test* test, CppUnitException* e)
|
||||
else
|
||||
{
|
||||
_ostr << "ERROR (ignored)" << std::flush;
|
||||
delete e;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,6 +141,7 @@ void TextTestResult::addFailure(Test* test, CppUnitException* e)
|
||||
else
|
||||
{
|
||||
_ostr << "FAILURE (ignored)" << std::flush;
|
||||
delete e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user