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

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);