diff options
author | phk <phk@FreeBSD.org> | 2003-10-22 20:28:46 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-22 20:28:46 +0000 |
commit | d7e0132261c426fe9d79debe8c9cd27f85316c4c (patch) | |
tree | 81833d980360f8290ec465cdbb1272d5e0005ac7 /sys/geom/geom_fox.c | |
parent | 9f1cde615a56a21cb455f5efd1c26bc677cbfd1e (diff) | |
download | FreeBSD-src-d7e0132261c426fe9d79debe8c9cd27f85316c4c.zip FreeBSD-src-d7e0132261c426fe9d79debe8c9cd27f85316c4c.tar.gz |
Fix a braino memory leak.
Found by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Diffstat (limited to 'sys/geom/geom_fox.c')
-rw-r--r-- | sys/geom/geom_fox.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |