summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/vinum/geom_vinum_drive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/vinum/geom_vinum_drive.c b/sys/geom/vinum/geom_vinum_drive.c
index 60583da..237d55e 100644
--- a/sys/geom/vinum/geom_vinum_drive.c
+++ b/sys/geom/vinum/geom_vinum_drive.c
@@ -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 {
OpenPOWER on IntegriCloud