summaryrefslogtreecommitdiffstats
path: root/src/build_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_log.cc')
-rw-r--r--src/build_log.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build_log.cc b/src/build_log.cc
index 4b93931..fd93ea8 100644
--- a/src/build_log.cc
+++ b/src/build_log.cc
@@ -221,6 +221,7 @@ bool BuildLog::Recompact(const string& path, string* err) {
if (fprintf(f, kFileSignature, kCurrentVersion) < 0) {
*err = strerror(errno);
+ fclose(f);
return false;
}