diff --git a/lib/format_text/import_vsn1.c b/lib/format_text/import_vsn1.c index 3fd455a45..096c44369 100644 --- a/lib/format_text/import_vsn1.c +++ b/lib/format_text/import_vsn1.c @@ -1347,6 +1347,12 @@ static struct volume_group *_read_vg(struct cmd_context *cmd, vg->pv_names = NULL; /* PV names are no longer valid outside of _read_vg() */ } + if (0 && vg->lv_names) { + /* TODO: update also rename function to keep lv_names always valid and usable */ + radix_tree_destroy(vg->lv_names); + vg->lv_names = NULL; + } + /* * Finished. */