mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm-stats: clear dms->groups in _stats_groups_destroy()
This commit is contained in:
parent
cb8c04760f
commit
7fd2fa22dd
@ -378,6 +378,7 @@ static void _stats_groups_destroy(struct dm_stats *dms)
|
||||
for (i = dms->max_region; (i != DM_STATS_REGION_NOT_PRESENT); i--)
|
||||
_stats_group_destroy(&dms->groups[i]);
|
||||
dm_pool_free(dms->group_mem, dms->groups);
|
||||
dms->groups = NULL;
|
||||
}
|
||||
|
||||
static int _set_stats_device(struct dm_stats *dms, struct dm_task *dmt)
|
||||
|
Loading…
Reference in New Issue
Block a user