Browse Source

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

Zach Mullen 16 years ago
parent
commit
08ac33fe6a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/CTest/cmCTestMultiProcessHandler.cxx

+ 1 - 0
Source/CTest/cmCTestMultiProcessHandler.cxx

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