summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-10-03 17:22:30 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-10-03 17:22:30 (GMT)
commit4d0c0e6d64d7541bb84881207454ef9181e25088 (patch)
tree9430bddfa372fb1ae44a2528b59ae54d83467633 /Source/cmTryCompileCommand.cxx
parent81996dc4de3dbd8d4bf71b41872accb3899d5355 (diff)
downloadCMake-4d0c0e6d64d7541bb84881207454ef9181e25088.zip
CMake-4d0c0e6d64d7541bb84881207454ef9181e25088.tar.gz
CMake-4d0c0e6d64d7541bb84881207454ef9181e25088.tar.bz2
ENH: make sure file is closed
Diffstat (limited to 'Source/cmTryCompileCommand.cxx')
-rw-r--r--Source/cmTryCompileCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx
index f3fe893..d299162 100644
--- a/Source/cmTryCompileCommand.cxx
+++ b/Source/cmTryCompileCommand.cxx
@@ -178,6 +178,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
}
err << "\nSee PROJECT command for help enabling other languages.";
cmSystemTools::Error(err.str().c_str());
+ fclose(fout);
return -1;
}
std::string langFlags = "CMAKE_";