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:
parent
f66bc3dab0
commit
13426092e9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user