Author: adrian
Date: Mon Feb 20 03:10:56 2017
New Revision: 313978
URL: https://svnweb.freebsd.org/changeset/base/313978

Log:
  [ifconfig] fix a memory leak.
  
  Submitted by: Tom Rix <[email protected]>
  Differential Revision:        https://reviews.freebsd.org/D9654

Modified:
  head/sbin/ifconfig/ifieee80211.c

Modified: head/sbin/ifconfig/ifieee80211.c
==============================================================================
--- head/sbin/ifconfig/ifieee80211.c    Mon Feb 20 02:08:08 2017        
(r313977)
+++ head/sbin/ifconfig/ifieee80211.c    Mon Feb 20 03:10:56 2017        
(r313978)
@@ -1143,6 +1143,7 @@ set80211chanlist(const char *val, int d,
                cp = tp;
        }
        set80211(s, IEEE80211_IOC_CHANLIST, 0, sizeof(chanlist), &chanlist);
+       free(temp);
 }
 
 static void
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to