mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Release_vg instead of plain free in error path
This commit is contained in:
parent
ec6a14f40a
commit
5dc08c01d3
@ -1,5 +1,6 @@
|
||||
Version 2.02.92 -
|
||||
====================================
|
||||
Release vg in error path of _format1_vg_read() instead of just free().
|
||||
Report allocation failure for allocation of PV structure.
|
||||
Add clvmd init dependency on dlm service when running with new corosync.
|
||||
|
||||
|
@ -227,7 +227,7 @@ static struct volume_group *_format1_vg_read(struct format_instance *fid,
|
||||
return vg;
|
||||
|
||||
bad:
|
||||
free(vg);
|
||||
release_vg(vg);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user