Close ifstream.

This commit is contained in:
Zach Mullen 2010-03-01 12:05:58 -05:00
parent 348f6c4d8c
commit 5cfbdb1f80
1 changed files with 5 additions and 1 deletions

View File

@ -363,7 +363,11 @@ void cmCTestMultiProcessHandler::ReadCostData()
cmSystemTools::SplitString(line.c_str(), ' '); cmSystemTools::SplitString(line.c_str(), ' ');
// Probably an older version of the file, will be fixed next run // Probably an older version of the file, will be fixed next run
if(parts.size() < 3) return; if(parts.size() < 3)
{
fin.close();
return;
}
std::string name = parts[0]; std::string name = parts[0];
int prev = atoi(parts[1].c_str()); int prev = atoi(parts[1].c_str());