From 4d0c0e6d64d7541bb84881207454ef9181e25088 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 3 Oct 2006 13:22:30 -0400 Subject: [PATCH] ENH: make sure file is closed --- Source/cmTryCompileCommand.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmTryCompileCommand.cxx b/Source/cmTryCompileCommand.cxx index f3fe8937a..d29916281 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_";