From 08ac33fe6ab5d992ff06de9f96f8a87bf4c43c70 Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Thu, 10 Dec 2009 09:39:19 -0500 Subject: Fix memory leak that occurred when a test executable could not be started. (See BadExe test) --- Source/CTest/cmCTestMultiProcessHandler.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index 4568e68..a79f131 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/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()); } -- cgit v0.12