From eb1889fd1b7196385ef0bfae18e3e4f6fdda7094 Mon Sep 17 00:00:00 2001 From: le Date: Fri, 6 Feb 2004 22:51:04 +0000 Subject: Fix memory leak. PR: kern/58634 Submitted by: le Approved by: phk --- sys/geom/geom_fox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/geom/geom_fox.c') diff --git a/sys/geom/geom_fox.c b/sys/geom/geom_fox.c index 3178649..df4b68c 100644 --- a/sys/geom/geom_fox.c +++ b/sys/geom/geom_fox.c @@ -452,9 +452,9 @@ g_fox_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) g_topology_assert(); sc = gp->softc; - gp->softc = NULL; mtx_destroy(&sc->lock); g_free(gp->softc); + gp->softc = NULL; g_wither_geom(gp, ENXIO); return (0); } -- cgit v1.1