Commit 8a2763b3 authored by Brad King's avatar Brad King 💬 Committed by Kitware Robot
Browse files

Merge topic 'missing-fclose-in-trycompile'

ce441fac try_compile: add missing fclose() to recently added error case
parents 5b5a365a ce441fac
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment