1
0
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:
Zdenek Kabelac 2012-02-13 10:53:31 +00:00
parent ec6a14f40a
commit 5dc08c01d3
2 changed files with 2 additions and 1 deletions

View File

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

View File

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