Fix leaks in Linux

This commit is contained in:
Andrea Mazzoleni 2026-05-18 00:18:48 +02:00
parent 7217948571
commit 19d212444c

View file

@ -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;
}