1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

Fix pool leak in lvmcache_read_vg error path.

(Introduced in previous patches.)
This commit is contained in:
Milan Broz 2009-04-24 12:03:55 +00:00
parent 14bd66805e
commit 542bdaa740

View File

@ -522,6 +522,7 @@ struct volume_group *lvmcache_get_vg(const char *vgid, unsigned precommitted)
if (!(vg = import_vg_from_buffer(vginfo->vgmetadata, fid)) ||
!vg_validate(vg)) {
_free_cached_vgmetadata(vginfo);
vg_release(vg);
return_NULL;
}