1
0
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:
Zdenek Kabelac 2010-11-23 15:28:54 +00:00
parent 7d11d708d8
commit 0a178d853a
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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,