summaryrefslogtreecommitdiffstats
path: root/freebsd/lib/lib80211/lib80211_regdomain.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/lib/lib80211/lib80211_regdomain.c')
-rw-r--r--freebsd/lib/lib80211/lib80211_regdomain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/freebsd/lib/lib80211/lib80211_regdomain.c b/freebsd/lib/lib80211/lib80211_regdomain.c
index 11c6e849..6ff45faa 100644
--- a/freebsd/lib/lib80211/lib80211_regdomain.c
+++ b/freebsd/lib/lib80211/lib80211_regdomain.c
@@ -583,6 +583,7 @@ cleanup_bands(netband_head *head)
nb = LIST_FIRST(head);
if (nb == NULL)
break;
+ LIST_REMOVE(nb, next);
free(nb);
}
}