Fix memory leak that occurred when a test executable could not be started. (See BadExe test)

This commit is contained in:
Zach Mullen 2009-12-10 09:39:19 -05:00
parent 30f17e2932
commit 08ac33fe6a
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}