Fix memory leak that occurred when a test executable could not be started. (See BadExe test)
This commit is contained in:
parent
30f17e2932
commit
08ac33fe6a
@ -105,6 +105,7 @@ void cmCTestMultiProcessHandler::StartTestProcess(int test)
|
|||||||
this->RunningCount -= GetProcessorsUsed(test);
|
this->RunningCount -= GetProcessorsUsed(test);
|
||||||
testRun->EndTest(this->Completed, this->Total, false);
|
testRun->EndTest(this->Completed, this->Total, false);
|
||||||
this->Failed->push_back(this->Properties[test]->Name);
|
this->Failed->push_back(this->Properties[test]->Name);
|
||||||
|
delete testRun;
|
||||||
}
|
}
|
||||||
cmSystemTools::ChangeDirectory(current_dir.c_str());
|
cmSystemTools::ChangeDirectory(current_dir.c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user