1
0
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:
Zdenek Kabelac 2009-12-11 13:14:44 +00:00
parent 685be1dc7a
commit 735308699c
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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);