mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add missing closedir() - fixes resource leak
This commit is contained in:
parent
7d11d708d8
commit
0a178d853a
@ -1,5 +1,6 @@
|
||||
Version 2.02.78 -
|
||||
====================================
|
||||
Fix resource leak in _rm_blks().
|
||||
Suppress 'No PV label' message when removing several PVs without mdas.
|
||||
Fix default /etc/lvm permissions to be 0755. (2.02.66)
|
||||
|
||||
|
@ -105,6 +105,9 @@ static void _rm_blks(const char *dir)
|
||||
log_sys_error("unlink", path);
|
||||
}
|
||||
}
|
||||
|
||||
if (closedir(d))
|
||||
log_sys_error("closedir", dir);
|
||||
}
|
||||
|
||||
static int _mk_link(const char *dev_dir, const char *vg_name,
|
||||
|
Loading…
Reference in New Issue
Block a user