From c78970c0d0f94492e1e3492e0272732311be1274 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Wed, 3 Apr 2024 15:59:25 -0500 Subject: [PATCH] lvmcache: free list of add_cache_devs --- lib/cache/lvmcache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c index 9f9d0ba5d..c80126f0c 100644 --- a/lib/cache/lvmcache.c +++ b/lib/cache/lvmcache.c @@ -1687,6 +1687,8 @@ int lvmcache_label_scan(struct cmd_context *cmd) label_scan_dev(cmd, devl->dev); } + _destroy_device_list(&add_cache_devs); + dm_list_splice(&_unused_duplicates, &del_cache_devs); /* Warn about unused duplicates that the user might want to resolve. */