From 468c50de15ea6054c188719df86f3b4fd51a56cc Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 20 Feb 2017 03:10:56 +0000 Subject: [PATCH] [ifconfig] fix a memory leak. Submitted by: Tom Rix Differential Revision: https://reviews.freebsd.org/D9654 --- sbin/ifconfig/ifieee80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index e9130ef5bc95..11b4648a69f4 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -1143,6 +1143,7 @@ set80211chanlist(const char *val, int d, int s, const struct afswtch *rafp) cp = tp; } set80211(s, IEEE80211_IOC_CHANLIST, 0, sizeof(chanlist), &chanlist); + free(temp); } static void