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:
parent
14bd66805e
commit
542bdaa740
1
lib/cache/lvmcache.c
vendored
1
lib/cache/lvmcache.c
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user