summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_fox.c
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2004-02-06 22:51:04 +0000
committerle <le@FreeBSD.org>2004-02-06 22:51:04 +0000
commiteb1889fd1b7196385ef0bfae18e3e4f6fdda7094 (patch)
treed874e87958e421dc31ad15699bb0e8fd688e04c6 /sys/geom/geom_fox.c
parent21fda7ee48f465c5fc64f99bf64397595d205484 (diff)
downloadFreeBSD-src-eb1889fd1b7196385ef0bfae18e3e4f6fdda7094.zip
FreeBSD-src-eb1889fd1b7196385ef0bfae18e3e4f6fdda7094.tar.gz
Fix memory leak.
PR: kern/58634 Submitted by: le Approved by: phk
Diffstat (limited to 'sys/geom/geom_fox.c')
-rw-r--r--sys/geom/geom_fox.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud