Date: Thu, 13 Aug 2020 06:32:39 +0000 (UTC) From: Eugene Grosbein <eugen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r364186 - head/sbin/ifconfig Message-ID: <202008130632.07D6WdVQ017402@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eugen Date: Thu Aug 13 06:32:39 2020 New Revision: 364186 URL: https://svnweb.freebsd.org/changeset/base/364186 Log: ifconfig(8): plug memory leak after r361790 by me. MFC after: 3 days Modified: head/sbin/ifconfig/ifconfig.c Modified: head/sbin/ifconfig/ifconfig.c ============================================================================== --- head/sbin/ifconfig/ifconfig.c Thu Aug 13 02:32:46 2020 (r364185) +++ head/sbin/ifconfig/ifconfig.c Thu Aug 13 06:32:39 2020 (r364186) @@ -748,6 +748,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?202008130632.07D6WdVQ017402>