Blame SOURCES/lvm2-2_03_12-label_scan-fix-missing-free-of-filtered_devs.patch

abb29f
 lib/label/label.c | 5 +++++
abb29f
 1 file changed, 5 insertions(+)
abb29f
abb29f
diff --git a/lib/label/label.c b/lib/label/label.c
abb29f
index e067a6b..e6dd4a1 100644
abb29f
--- a/lib/label/label.c
abb29f
+++ b/lib/label/label.c
abb29f
@@ -1243,6 +1243,11 @@ int label_scan(struct cmd_context *cmd)
abb29f
 		free(devl);
abb29f
 	}
abb29f
 
abb29f
+	dm_list_iterate_items_safe(devl, devl2, &filtered_devs) {
abb29f
+		dm_list_del(&devl->list);
abb29f
+		free(devl);
abb29f
+	}
abb29f
+
abb29f
 	/*
abb29f
 	 * If hints were not available/usable, then we scanned all devs,
abb29f
 	 * and we now know which are PVs.  Save this list of PVs we've