Merge "Fix double close in GetTreeBytes."
This commit is contained in:
commit
142702dc82
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue