From 416f9512830ff81e32852f2fce0ee7e36fcdb50f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 11 Feb 2017 21:20:12 +0100 Subject: [PATCH] coverity: fix double free Do not try to free hist_arg twice. --- libdm/libdm-stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index 032be0391..34e117e81 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -4725,7 +4725,7 @@ static uint64_t *_stats_map_file_regions(struct dm_stats *dms, int fd, dm_pool_free(extent_mem, extents); dm_pool_destroy(extent_mem); - dm_free(hist_arg); + return regions; out_remove: