[ifconfig] fix a memory leak.

Submitted by:	Tom Rix <trix@juniper.net>
Differential Revision:	https://reviews.freebsd.org/D9654
This commit is contained in:
Adrian Chadd 2017-02-20 03:10:56 +00:00
parent 617f8b101e
commit 468c50de15

View File

@ -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