Version 2.02.56 -
====================================
+ Add missing vg_release to pvs and pvdisplay to fix memory leak.
Do not try to unlock VG which is not locked in _process_one_vg.
Move persistent filter dump to more appropriate place.
Refresh device filters before full device rescan in lvmcache.
vg_name = pv_vg_name(pv);
vg = vg_read(cmd, vg_name, (char *)&pv->vgid, 0);
if (vg_read_error(vg)) {
- log_error("Skipping volume group %s", vg_name);
+ log_error("Skipping volume group %s", vg_name);
+ vg_release(vg);
/* FIXME If CLUSTERED should return ECMD_PROCESSED here */
- return ECMD_FAILED;
- }
+ return ECMD_FAILED;
+ }
/*
* Replace possibly incomplete PV structure with new one
vg = vg_read(cmd, vg_name, (char *)&pv->vgid, 0);
if (vg_read_error(vg)) {
log_error("Skipping volume group %s", vg_name);
+ vg_release(vg);
return ECMD_FAILED;
}