diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2010-03-01 17:05:58 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2010-03-01 17:05:58 (GMT) |
commit | 5cfbdb1f80bf7acbecd927ca584c36022c78a19a (patch) | |
tree | 3d9779ecf62646c9a24d2b490fae556473440c18 | |
parent | 348f6c4d8cd0945a61c070b5094bc89518cc27e0 (diff) | |
download | CMake-5cfbdb1f80bf7acbecd927ca584c36022c78a19a.zip CMake-5cfbdb1f80bf7acbecd927ca584c36022c78a19a.tar.gz CMake-5cfbdb1f80bf7acbecd927ca584c36022c78a19a.tar.bz2 |
Close ifstream.
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index b29e4e3..9d76dd4 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -363,7 +363,11 @@ void cmCTestMultiProcessHandler::ReadCostData() cmSystemTools::SplitString(line.c_str(), ' '); // 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]; int prev = atoi(parts[1].c_str()); |