diff --git a/tools/toollib.c b/tools/toollib.c
index 30dc980ba..d33de7915 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -2201,6 +2201,7 @@ static int _process_pvs_in_vgs(struct cmd_context *cmd, uint32_t flags,
 		if (ignore_vg(vg, vg_name, flags & READ_ALLOW_INCONSISTENT, &skip)) {
 			stack;
 			ret_max = ECMD_FAILED;
+			release_vg(vg);
 			continue;
 		}