Merge "Fix double close in GetTreeBytes."

This commit is contained in:
Treehugger Robot 2018-06-08 23:34:41 +00:00 committed by Gerrit Code Review
commit 142702dc82

View file

@ -523,9 +523,7 @@ uint64_t GetTreeBytes(const std::string& path) {
PLOG(WARNING) << "Failed to open " << path;
return -1;
} else {
uint64_t res = calculate_dir_size(dirfd);
close(dirfd);
return res;
return calculate_dir_size(dirfd);
}
}