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.
This commit is contained in:
Lukas Ertl 2004-06-14 17:12:32 +00:00
parent 1a9e260fd4
commit a6facf72b1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130478

View file

@ -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);
}