mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Destroy allocated mempool in _vg_read_orphans() error path.
This commit is contained in:
parent
685be1dc7a
commit
735308699c
@ -1,5 +1,6 @@
|
||||
Version 2.02.57 -
|
||||
====================================
|
||||
Destroy allocated mempool in _vg_read_orphans() error path.
|
||||
Fix unlocking vg in some pvresize and toollib error paths.
|
||||
Explicitly call suspend for temporary mirror layer.
|
||||
Allow use precommited metadata when a PV is missing.
|
||||
|
@ -2380,7 +2380,7 @@ static struct volume_group *_vg_read_orphans(struct cmd_context *cmd,
|
||||
|
||||
if (!(vg = dm_pool_zalloc(mem, sizeof(*vg)))) {
|
||||
log_error("vg allocation failed");
|
||||
return NULL;
|
||||
goto bad;
|
||||
}
|
||||
dm_list_init(&vg->pvs);
|
||||
dm_list_init(&vg->lvs);
|
||||
|
Loading…
Reference in New Issue
Block a user