Date: Sun, 16 Aug 2020 02:04:36 +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-12@freebsd.org Subject: svn commit: r364265 - stable/12/sbin/ifconfig Message-ID: <202008160204.07G24axg067579@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eugen Date: Sun Aug 16 02:04:35 2020 New Revision: 364265 URL: https://svnweb.freebsd.org/changeset/base/364265 Log: MFC r364186: ifconfig(8): plug memory leak Modified: stable/12/sbin/ifconfig/ifconfig.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sbin/ifconfig/ifconfig.c ============================================================================== --- stable/12/sbin/ifconfig/ifconfig.c Sat Aug 15 22:59:44 2020 (r364264) +++ stable/12/sbin/ifconfig/ifconfig.c Sun Aug 16 02:04:35 2020 (r364265) @@ -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?202008160204.07G24axg067579>