summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_subr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-01-23 20:40:25 +0000
committerphk <phk@FreeBSD.org>2004-01-23 20:40:25 +0000
commitcd37a854086191ba3b4fc2e379dc71b33a8ca0ec (patch)
treee935984ee9616f4bd38ac8d16e8a0fb15e71f9b1 /sys/geom/geom_subr.c
parent148390a29288a6d5f60bfc70bf9a61507db03658 (diff)
downloadFreeBSD-src-cd37a854086191ba3b4fc2e379dc71b33a8ca0ec.zip
FreeBSD-src-cd37a854086191ba3b4fc2e379dc71b33a8ca0ec.tar.gz
Plug an insignificant memoryleak.
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r--sys/geom/geom_subr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index 2d11879..e6e9090 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -194,6 +194,9 @@ g_modevent(module_t mod, int type, void *data)
}
g_free(hh);
break;
+ default:
+ g_free(hh);
+ break;
}
return (error);
}
OpenPOWER on IntegriCloud