svn commit: r364266 - stable/11/sbin/ifconfig
Eugene Grosbein
eugen at FreeBSD.org
Sun Aug 16 02:05:19 UTC 2020
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);
More information about the svn-src-stable-11
mailing list