mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: memleak dir descriptor
opendir() missed closedir().
This commit is contained in:
parent
308c6f31c3
commit
ec9dd728aa
@ -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)
|
if (used_by_lv_count)
|
||||||
*used_by_lv_count = used_count;
|
*used_by_lv_count = used_count;
|
||||||
if (used_by_dm_name)
|
if (used_by_dm_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user