]> sourceware.org Git - lvm2.git/commitdiff
libdm: free hist_arg in _stats_create_file_regions() (Coverity)
authorBryn M. Reeves <bmr@redhat.com>
Mon, 18 Jul 2016 17:08:51 +0000 (18:08 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Mon, 18 Jul 2016 17:09:21 +0000 (18:09 +0100)
libdm/libdm-stats.c

index 57ef11d4a6455863fcd2fb06223c399ffc4ee0ed..1c2e19b88e72620d50f5f7b89b0dd02fceef9a6c 100644 (file)
@@ -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;
 }
This page took 0.041047 seconds and 5 git commands to generate.