From d7e0132261c426fe9d79debe8c9cd27f85316c4c Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 22 Oct 2003 20:28:46 +0000 Subject: Fix a braino memory leak. Found by: Pawel Jakub Dawidek --- 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 295840f..1bc7dbe 100644 --- a/sys/geom/geom_fox.c +++ b/sys/geom/geom_fox.c @@ -190,8 +190,8 @@ g_fox_orphan(struct g_consumer *cp) } mtx_destroy(&sc->lock); - gp->softc = NULL; g_free(gp->softc); + gp->softc = NULL; g_wither_geom(gp, ENXIO); } -- cgit v1.1