1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dmfilemapd: free region table at end of _update_regions() (coverity)

This commit is contained in:
Bryn M. Reeves 2017-03-29 17:33:23 +01:00
parent f66bc3dab0
commit 13426092e9

View File

@ -687,7 +687,7 @@ static int _update_regions(struct dm_stats *dms, struct filemap_monitor *fm)
fm->group_id, regions[0]);
fm->group_id = regions[0];
}
dm_free(regions);
fm->nr_regions = nr_regions;
return 1;
}