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. */