Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2018 08:32:54 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330468 - stable/11/sbin/ifconfig
Message-ID:  <201803050832.w258WsHM022655@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Mon Mar  5 08:32:54 2018
New Revision: 330468
URL: https://svnweb.freebsd.org/changeset/base/330468

Log:
  MFC r313978:
  
  [ifconfig] fix a memory leak.

Modified:
  stable/11/sbin/ifconfig/ifieee80211.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sbin/ifconfig/ifieee80211.c
==============================================================================
--- stable/11/sbin/ifconfig/ifieee80211.c	Mon Mar  5 08:32:15 2018	(r330467)
+++ stable/11/sbin/ifconfig/ifieee80211.c	Mon Mar  5 08:32:54 2018	(r330468)
@@ -1083,6 +1083,7 @@ set80211chanlist(const char *val, int d, int s, const 
 		cp = tp;
 	}
 	set80211(s, IEEE80211_IOC_CHANLIST, 0, sizeof(chanlist), &chanlist);
+	free(temp);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803050832.w258WsHM022655>