mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: dmeventd fix memleak on error path
Some error paths on _umount have leaked bitset.
This commit is contained in:
parent
401c9aba4a
commit
6f9e26f5c0
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user