summaryrefslogtreecommitdiff
path: root/Source/cmTryCompileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-10-03 13:22:30 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2006-10-03 13:22:30 -0400
commit4d0c0e6d64d7541bb84881207454ef9181e25088 (patch)
tree9430bddfa372fb1ae44a2528b59ae54d83467633 /Source/cmTryCompileCommand.cxx
parent81996dc4de3dbd8d4bf71b41872accb3899d5355 (diff)
downloadcmake-4d0c0e6d64d7541bb84881207454ef9181e25088.tar.gz
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 f3fe8937ab..d299162814 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_";