aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_apple.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_apple.c')
-rw-r--r--sys/geom/geom_apple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_apple.c b/sys/geom/geom_apple.c
index 503a52082a8f..24bd909b98ab 100644
--- a/sys/geom/geom_apple.c
+++ b/sys/geom/geom_apple.c
@@ -246,12 +246,13 @@ g_apple_taste(struct g_class *mp, struct g_provider *pp, int insist)
"%ss%d", gp->name, i + 1);
g_topology_unlock();
}
+ g_free(buf);
break;
} while(0);
g_topology_lock();
g_access_rel(cp, -1, 0, 0);
if (LIST_EMPTY(&gp->provider)) {
- g_std_spoiled(cp);
+ g_slice_spoiled(cp);
return (NULL);
}
return (gp);