mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-03 08:22:00 +03:00
dmsetup: fix bounds leak in _do_stats_create_regions()
If we fail to create the DM_DEVICE_TABLE dm_task destroy the bounds object before returning.
This commit is contained in:
@ -4674,6 +4674,7 @@ static int _do_stats_create_regions(struct dm_stats *dms,
|
||||
return_0;
|
||||
|
||||
if (!(dmt = dm_task_create(DM_DEVICE_TABLE))) {
|
||||
dm_histogram_bounds_destroy(bounds);
|
||||
dm_stats_destroy(dms);
|
||||
return_0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user