summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/geom/mirror/g_mirror.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index e627c60..a2e6d3d 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -2349,8 +2349,6 @@ g_mirror_read_metadata(struct g_consumer *cp, struct g_mirror_metadata *md)
if (buf == NULL) {
G_MIRROR_DEBUG(1, "Cannot read metadata from %s (error=%d).",
cp->provider->name, error);
- if (buf != NULL)
- g_free(buf);
return (error);
}
OpenPOWER on IntegriCloud