summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-04-28 14:07:48 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-04-28 14:07:48 +0000
commitc76dc8d11b57d6fa195b8848e5d3bdc35eaf86ba (patch)
tree81e420134847e76356d5330dd23e7166495110ad /sys/dev
parent0b1a4f2b56b5c02c1ab1a7748d43f5b04deca9b0 (diff)
Fix a memory leak in an error path found by Maxime Villard's
Brainy Code Scanner.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/aic6915.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/aic6915.c b/sys/dev/ic/aic6915.c
index 6d1e0c3775c..729312fa9d2 100644
--- a/sys/dev/ic/aic6915.c
+++ b/sys/dev/ic/aic6915.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic6915.c,v 1.14 2014/12/22 02:28:51 tedu Exp $ */
+/* $OpenBSD: aic6915.c,v 1.15 2015/04/28 14:07:47 jsg Exp $ */
/* $NetBSD: aic6915.c,v 1.15 2005/12/24 20:27:29 perry Exp $ */
/*-
@@ -405,6 +405,7 @@ sf_start(struct ifnet *ifp)
if (error) {
printf("%s: unable to load Tx buffer, "
"error = %d\n", sc->sc_dev.dv_xname, error);
+ m_freem(m);
break;
}
}