1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Do not call dm_task_destroy with NULL

This commit is contained in:
Zdenek Kabelac 2010-11-23 18:29:06 +00:00
parent 0a178d853a
commit f46de65682
2 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.78 -
====================================
Fix dm_task_destroy(NULL) call in _node_clear_table() error path.
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

@ -580,7 +580,6 @@ static int _node_clear_table(struct dm_tree_node *dnode)
name, info->major, info->minor);
if (!(dmt = dm_task_create(DM_DEVICE_CLEAR))) {
dm_task_destroy(dmt);
log_error("Table clear dm_task creation failed for %s", name);
return 0;
}