On 2015/09/18 09:05, David Hill wrote:
> Hello -
> 
> I believe the wrong var is being free'd.  While here, add the size.
> 
> Index: sys/net/rtsock.c
> ===================================================================
> RCS file: /cvs/src/sys/net/rtsock.c,v
> retrieving revision 1.170
> diff -u -p -r1.170 rtsock.c
> --- sys/net/rtsock.c  11 Sep 2015 16:58:00 -0000      1.170
> +++ sys/net/rtsock.c  18 Sep 2015 13:04:34 -0000
> @@ -166,7 +166,7 @@ route_usrreq(struct socket *so, int req,
>               else
>                       error = raw_attach(so, (int)(long)nam);
>               if (error) {
> -                     free(rp, M_PCB, 0);
> +                     free(rop, M_PCB, sizeof(struct routecb));
>                       splx(s);
>                       return (error);
>               }
> 

I agree, I think this was missed in r1.110

  • rtsock diff David Hill
    • Re: rtsock diff Stuart Henderson

Reply via email to