diff options
author | David Teigland <teigland@redhat.com> | 2021-01-18 16:26:02 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-01-18 16:26:02 -0600 |
commit | 2ec29d0677a5f92728873b5b1e303478cd71a3e4 (patch) | |
tree | 59acb84114c2b4ecc415aa875003e91366cbce5f | |
parent | 9757b4726c6f1e16c84210a3c4578db29eb7662d (diff) | |
download | lvm2-2ec29d0677a5f92728873b5b1e303478cd71a3e4.tar.gz |
label_scan: fix missing free of filtered_devs
missing free of devl entries on filtered_devs list in
commit 2c9bb676048fda86867df165aa297f7078dffc4b
-rw-r--r-- | lib/label/label.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index e067a6bed..e6dd4a17e 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -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 |