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