diff --git a/src/vol/volume.c b/src/vol/volume.c index 5135df8ebf..938a8361f1 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -2755,12 +2755,14 @@ GetVolume(Error * ec, Error * client_ec, VolId volumeId, Volume * hint, int flag } } *ec = VOFFLINE; + ReleaseVolumeHeader(vp->header); vp = NULL; break; } if (V_attachState(vp) == VOL_STATE_UNATTACHED) { *ec = VOFFLINE; + ReleaseVolumeHeader(vp->header); vp = NULL; break; }