- Fix a memory leak when re-discovering a gvinum configuration.

Approved by:	pjd (mentor)
MFC after:	1 week
This commit is contained in:
Ulf Lilleengen 2008-03-18 08:48:51 +00:00
parent 05e486c71e
commit 1cf9b83c6d

View File

@ -469,9 +469,11 @@ gv_drive_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
/* Check if this drive already has a geom. */
if (d->geom != NULL) {
g_topology_unlock();
g_free(vhdr);
break;
}
bcopy(vhdr, d->hdr, sizeof(*vhdr));
g_free(vhdr);
/* This is a new drive. */
} else {