Re: if_delgroup(): Add size to free(9) call

2020-06-30 Thread Vitaliy Makkoveev
On Tue, Jun 30, 2020 at 04:11:59AM +0200, Klemens Nanni wrote: > Interface groups are allocated as follows: > > struct ifg_group * > if_creategroup(const char *groupname) > { > struct ifg_group*ifg; > > if ((ifg = malloc(sizeof(*ifg), M_TEMP,

if_delgroup(): Add size to free(9) call

2020-06-29 Thread Klemens Nanni
Interface groups are allocated as follows: struct ifg_group * if_creategroup(const char *groupname) { struct ifg_group*ifg; if ((ifg = malloc(sizeof(*ifg), M_TEMP, M_NOWAIT)) == NULL) return (NULL);