1
0
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:
Bryn M. Reeves 2016-12-09 15:49:06 +00:00
parent cb8c04760f
commit 7fd2fa22dd

View File

@ -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)