master - libdm: free hist_arg in _stats_create_file_regions() (Coverity)
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4ef1f345498045b6757247dc64baad8252260583 Commit: 4ef1f345498045b6757247dc64baad8252260583 Parent: 4b4d4670042db3edb1270097f4d6046a6a827bac Author: Bryn M. Reeves <[email protected]> AuthorDate: Mon Jul 18 18:08:51 2016 +0100 Committer: Bryn M. Reeves <[email protected]> CommitterDate: Mon Jul 18 18:09:21 2016 +0100
libdm: free hist_arg in _stats_create_file_regions() (Coverity)
--- libdm/libdm-stats.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
libdm/libdm-stats.c +3 -0
@@ -4323,6 +4323,8 @@ static uint64_t *_stats_create_file_regions(struct dm_stats *dms, int fd, } regions[*count] =DM_STATS_REGION_NOT_PRESENT ; +if (bounds) +dm_free (hist_arg);dm_pool_free (dms->mem, extents);return regions;
@@ -4335,6 +4337,7 @@ out_remove: out:dm_pool_free (dms->mem, extents); +dm_free (hist_arg);dm_free (regions);return NULL ; }