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

label_scan: fix missing free of filtered_devs

missing free of devl entries on filtered_devs list in
commit 2c9bb67604
This commit is contained in:
David Teigland 2021-01-18 16:26:02 -06:00
parent 9757b4726c
commit 2ec29d0677

View File

@ -1243,6 +1243,11 @@ int label_scan(struct cmd_context *cmd)
free(devl);
}
dm_list_iterate_items_safe(devl, devl2, &filtered_devs) {
dm_list_del(&devl->list);
free(devl);
}
/*
* If hints were not available/usable, then we scanned all devs,
* and we now know which are PVs. Save this list of PVs we've