1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

ifconfig(8): plug memory leak after r361790 by me.

MFC after:	3 days
This commit is contained in:
Eugene Grosbein 2020-08-13 06:32:39 +00:00
parent 654f53ab6a
commit cf51899564
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=364186

View File

@ -748,6 +748,7 @@ group_member(const char *ifname, const char *match, const char *nomatch)
if (nomatch)
nomatched &= fnmatch(nomatch, ifg->ifgrq_group, 0);
}
free(ifgr.ifgr_groups);
if (match && !nomatch)
return (matched);