mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-10 05:18:36 +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 -
|
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.
|
Report allocation failure for allocation of PV structure.
|
||||||
Add clvmd init dependency on dlm service when running with new corosync.
|
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;
|
return vg;
|
||||||
|
|
||||||
bad:
|
bad:
|
||||||
free(vg);
|
release_vg(vg);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user