ifconfig(8): plug memory leak after r361790 by me.
MFC after: 3 days
This commit is contained in:
parent
654f53ab6a
commit
cf51899564
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user