summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-04-17 11:35:26 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2013-04-17 11:35:26 -0400
commit8a2763b3ac92a427ab7cb18080a0884391d1cf57 (patch)
treeded98af559f9966dcd7deaf17328d4f2222ab7f4
parent5b5a365aa676d93d7b574735e80e9625d57c8e52 (diff)
parentce441fac071698e969a4ec5f067fb9b0f6e60b73 (diff)
downloadcmake-8a2763b3ac92a427ab7cb18080a0884391d1cf57.tar.gz
Merge topic 'missing-fclose-in-trycompile'
ce441fa try_compile: add missing fclose() to recently added error case
-rw-r--r--Source/cmCoreTryCompile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index 387f6ed5bc..9f38b2529b 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -326,6 +326,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
{
this->Makefile->IssueMessage(cmake::FATAL_ERROR,
"could not write export file.");
+ fclose(fout);
return -1;
}
fprintf(fout,