diff options
author | le <le@FreeBSD.org> | 2004-06-14 17:12:32 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2004-06-14 17:12:32 +0000 |
commit | 7429d59ed622b5592f530b76c7ce131d9739efdc (patch) | |
tree | ac36d247c56c84898039981dd91b7e815a99d81d | |
parent | 57fad3e864971a3e0cc58d39b912ffaa17b102c5 (diff) | |
download | FreeBSD-src-7429d59ed622b5592f530b76c7ce131d9739efdc.zip FreeBSD-src-7429d59ed622b5592f530b76c7ce131d9739efdc.tar.gz |
Don't free a VINUMDRIVE softc when it's orphaned or spoiled. All
allocated ressouces should be ultimately freed in gv_destroy_geom()
(when unloading the module and not earlier), but I need to look at this
more closely.
-rw-r--r-- | sys/geom/vinum/geom_vinum_drive.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/geom/vinum/geom_vinum_drive.c b/sys/geom/vinum/geom_vinum_drive.c index 161b6ac..3673255 100644 --- a/sys/geom/vinum/geom_vinum_drive.c +++ b/sys/geom/vinum/geom_vinum_drive.c @@ -278,7 +278,6 @@ gv_drive_orphan(struct g_consumer *cp) g_destroy_consumer(cp); if (!LIST_EMPTY(&gp->consumer)) return; - g_free(gp->softc); g_wither_geom(gp, error); } |