summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorRicardo Mestre <mestre@cvs.openbsd.org>2018-09-18 06:36:19 +0000
committerRicardo Mestre <mestre@cvs.openbsd.org>2018-09-18 06:36:19 +0000
commit062be78d68caae0b72a55362323f32f2dd9e9b6f (patch)
treeb2eca9927e8406e16c229fcbf5dbe2a13c412a3e /sys/net80211
parent54cde692b670779aa46d28071f8809cd3e2e4b36 (diff)
fix memory leak in ieee80211_end_scan()
OK phessler@ jsg@
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 0c6822a77f8..1353eaa04a2 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.c,v 1.151 2018/09/17 02:34:16 jsg Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.152 2018/09/18 06:36:18 mestre Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
@@ -1376,6 +1376,7 @@ ieee80211_end_scan(struct ifnet *ifp)
IEEE80211_FC0_SUBTYPE_DEAUTH,
IEEE80211_REASON_AUTH_LEAVE) != 0) {
ic->ic_flags &= ~IEEE80211_F_BGSCAN;
+ free(arg, M_DEVBUF, sizeof(*arg));
return;
}