summaryrefslogtreecommitdiffstats
path: root/buildtool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtool.cpp')
-rw-r--r--buildtool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildtool.cpp b/buildtool.cpp
index 538a6faa5..2b10f3577 100644
--- a/buildtool.cpp
+++ b/buildtool.cpp
@@ -5213,6 +5213,7 @@ bool MakeBase::copyFile(const String &srcFile, const String &destFile)
FILE *destf = fopen(destNative.c_str(), "wb");
if (!destf)
{
+ fclose(srcf);
error("copyFile cannot open %s for writing", srcNative.c_str());
return false;
}