mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Fix leaks in Linux
This commit is contained in:
parent
7217948571
commit
19d212444c
1 changed files with 1 additions and 0 deletions
|
|
@ -749,6 +749,7 @@ static int devuuid_dev(uint64_t device, char* uuid, size_t uuid_size)
|
|||
int dir_fd = dirfd(d);
|
||||
if (dir_fd == -1) {
|
||||
log_tag("uuid:by-uuid:%u:%u: dirfd(/dev/disk/by-uuid) failed, %s\n", major(device), minor(device), strerror(errno));
|
||||
closedir(d);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue