summaryrefslogtreecommitdiffstats
path: root/sys/dev/md
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-09-14 18:32:05 +0000
committerpjd <pjd@FreeBSD.org>2004-09-14 18:32:05 +0000
commitf129890dbf243461b280ab5ae875b6161126e0b3 (patch)
treea8741ec6f8e9b000f1a64d24a1d2620ffd5bf40f /sys/dev/md
parente0ae5e463bbc5dbb18e3539a2af0d6e0757b490b (diff)
downloadFreeBSD-src-f129890dbf243461b280ab5ae875b6161126e0b3.zip
FreeBSD-src-f129890dbf243461b280ab5ae875b6161126e0b3.tar.gz
Fix UMA zone leak.
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index e18dd10..eb435c7 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -828,6 +828,7 @@ mdcreate_malloc(struct md_ioctl *mdio)
}
}
if (error) {
+ uma_zdestroy(sc->uma);
mddestroy(sc, NULL);
return (error);
}
OpenPOWER on IntegriCloud