Skip to contentSkip to conversation

master - libdm-stats: clear dms->regions in _stats_regions_destroy()

PATCH Bryn Reeves 1 participant 1 message Dec 9, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=cb8c04760f73b0376a909440da9c20f78694ea4e
Commit:        cb8c04760f73b0376a909440da9c20f78694ea4e
Parent:        900d203586faf1fef447002aa2e784cfc9575ad1
Author:        Bryn M. Reeves <[email protected]>
AuthorDate:    Fri Dec 9 15:47:55 2016 +0000
Committer:     Bryn M. Reeves <[email protected]>
CommitterDate: Fri Dec 9 16:04:13 2016 +0000

libdm-stats: clear dms->regions in _stats_regions_destroy()

---
 libdm/libdm-stats.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
libdm/libdm-stats.c +1 -0
index 411fd80..41adf42 100644
@@ -347,6 +347,7 @@ static void _stats_regions_destroy(struct dm_stats *dms)
 	}
 
 	dm_pool_free(mem, dms->regions);
+	dms->regions = NULL;
 }
 
 static void _stats_group_destroy(struct dm_stats_group *group)