Browse Source

Merge topic 'fix_leak'

dd52fc3 Fix a memory leak.
Brad King 14 years ago
parent
commit
f0d3658102
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/CTest/cmCTestTestHandler.cxx

+ 1 - 0
Source/CTest/cmCTestTestHandler.cxx

@@ -1936,6 +1936,7 @@ void cmCTestTestHandler::SetTestsToRunInformation(const char* in)
     fin.getline(buff, filelen);
     buff[fin.gcount()] = 0;
     this->TestsToRunString = buff;
+    delete [] buff;
     }
 }