summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2015-04-28 14:07:47 +0000
committerjsg <jsg@openbsd.org>2015-04-28 14:07:47 +0000
commit657454b1f12a352ecb11a961c310174a912a8e0c (patch)
tree2962fb2ef35d93f6d3b21e4ee64108624d30e5d7
parenttidy up the prebind text; prompted by zhuk (diff)
downloadwireguard-openbsd-657454b1f12a352ecb11a961c310174a912a8e0c.tar.xz
wireguard-openbsd-657454b1f12a352ecb11a961c310174a912a8e0c.zip
Fix a memory leak in an error path found by Maxime Villard's
Brainy Code Scanner.
-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;
}
}