From 8ac09f399339a96eb903c59952925569bf917e78 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Fri, 14 Apr 2017 20:10:18 +0000 Subject: [PATCH] [lib80211] fix a missing cleanup path. PR: lib/218655 Reported by: --- lib/lib80211/lib80211_regdomain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lib80211/lib80211_regdomain.c b/lib/lib80211/lib80211_regdomain.c index 35cc865efb58..ba80ceb4b38e 100644 --- a/lib/lib80211/lib80211_regdomain.c +++ b/lib/lib80211/lib80211_regdomain.c @@ -569,6 +569,7 @@ cleanup_bands(netband_head *head) nb = LIST_FIRST(head); if (nb == NULL) break; + LIST_REMOVE(nb, next); free(nb); } }