mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
Fix memory leak that occurred when a test executable could not be started. (See BadExe test)
This commit is contained in:
@@ -105,6 +105,7 @@ void cmCTestMultiProcessHandler::StartTestProcess(int test)
|
||||
this->RunningCount -= GetProcessorsUsed(test);
|
||||
testRun->EndTest(this->Completed, this->Total, false);
|
||||
this->Failed->push_back(this->Properties[test]->Name);
|
||||
delete testRun;
|
||||
}
|
||||
cmSystemTools::ChangeDirectory(current_dir.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user