Date: Sun, 16 Aug 2020 02:05:19 +0000 (UTC) From: Eugene Grosbein <eugen@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: r364266 - stable/11/sbin/ifconfig Message-ID: <202008160205.07G25J3P067670@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eugen Date: Sun Aug 16 02:05:18 2020 New Revision: 364266 URL: https://svnweb.freebsd.org/changeset/base/364266 Log: MFC r364186: ifconfig(8): plug memory leak Modified: stable/11/sbin/ifconfig/ifconfig.c Modified: stable/11/sbin/ifconfig/ifconfig.c ============================================================================== --- stable/11/sbin/ifconfig/ifconfig.c Sun Aug 16 02:04:35 2020 (r364265) +++ stable/11/sbin/ifconfig/ifconfig.c Sun Aug 16 02:05:18 2020 (r364266) @@ -714,6 +714,7 @@ group_member(const char *ifname, const char *match, co if (nomatch) nomatched &= fnmatch(nomatch, ifg->ifgrq_group, 0); } + free(ifgr.ifgr_groups); if (match && !nomatch) return (matched);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008160205.07G25J3P067670>