master - dmsetup: fix bounds leak in _do_stats_create_regions()
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a26523330e8f461b90eca7d2dcea0d0a6866e635 Commit: a26523330e8f461b90eca7d2dcea0d0a6866e635 Parent: 2a022e9e6ef24741c5ebf1ebeaff6241cc505287 Author: Bryn M. Reeves <[email protected]> AuthorDate: Mon Sep 7 11:14:28 2015 +0100 Committer: Bryn M. Reeves <[email protected]> CommitterDate: Mon Sep 7 11:14:28 2015 +0100
dmsetup: fix bounds leak in _do_stats_create_regions()
If we fail to create the DM_DEVICE_TABLE dm_task destroy the bounds object before returning.
--- tools/dmsetup.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
tools/dmsetup.c +1 -0
@@ -4674,6 +4674,7 @@ static int _do_stats_create_regions(struct dm_stats *dms, return_0;if (!(dmt =dm_task_create (DM_DEVICE_TABLE ))) { +dm_histogram_bounds_destroy (bounds);dm_stats_destroy (dms); return_0; }