Always dsgone() slices when we leave.

This commit is contained in:
Poul-Henning Kamp 1996-03-17 20:33:02 +00:00
parent d1b44182d0
commit b71daf5456

View file

@ -596,9 +596,8 @@ vnclear(struct vn_softc *vn)
vn->sc_vp = (struct vnode *)0;
vn->sc_cred = (struct ucred *)0;
vn->sc_size = 0;
IFOPT(vn, VN_LABELS)
if (vn->sc_slices != NULL)
dsgone(&vn->sc_slices);
if (vn->sc_slices != NULL)
dsgone(&vn->sc_slices);
}
static int