1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +03:00

thin: dmeventd fix memleak on error path

Some error paths on _umount have leaked bitset.
This commit is contained in:
Zdenek Kabelac 2012-12-13 20:19:38 +01:00
parent 401c9aba4a
commit 6f9e26f5c0
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.78 -
===================================
Fix resource leak in error path of dmeventd's umount of thin volume.
Automatically deactivate failed preloaded dm tree node.
Add DM_DISABLE_UDEV environment variable to manage dev nodes by libdm only.
Fix dm_task_set_cookie to properly process udev flags if udev_sync disabled.

View File

@ -291,8 +291,9 @@ static void _umount(struct dm_task *dmt, const char *device)
if (fclose(minfo))
syslog(LOG_ERR, "Failed to close %s\n", mountinfo);
dm_bitset_destroy(minors);
out:
if (minors)
dm_bitset_destroy(minors);
dmeventd_lvm2_lock();
}