1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-12 08:13:48 +03:00

cov: memleak dir descriptor

opendir() missed closedir().
This commit is contained in:
Zdenek Kabelac 2021-07-27 15:36:48 +02:00
parent 308c6f31c3
commit ec9dd728aa

View File

@ -180,6 +180,9 @@ int dev_is_used_by_active_lv(struct cmd_context *cmd, struct device *dev, int *u
}
}
if (closedir(d))
log_sys_debug("closedir", holders_path);
if (used_by_lv_count)
*used_by_lv_count = used_count;
if (used_by_dm_name)