Commit 2f96c55095
Changed files (1)
src/cache_hash.cpp
@@ -437,7 +437,9 @@ Error cache_hit(CacheHash *ch, Buf *out_digest) {
return ErrorCacheUnavailable;
}
}
- os_file_close(ch->manifest_file);
+ if (return_code != ErrorNone) {
+ os_file_close(ch->manifest_file);
+ }
return return_code;
}
// Cache Hit