mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: free hist_arg in _stats_create_file_regions() (Coverity)
This commit is contained in:
parent
4b4d467004
commit
4ef1f34549
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user