On 19/05/15(Tue) 15:28, Maxime Villard wrote:
> -------------------------- netinet/ip_icmp.c --------------------------
> 
> 925   rt = rtalloc(sintosa(&sin), RT_REPORT|RT_RESOLVE, rtableid);
>       if (rt == NULL)
>               return (NULL);
> 
>       /* Check if the route is actually usable */
>       if (rt->rt_flags & (RTF_REJECT | RTF_BLACKHOLE) ||
>           (rt->rt_flags & RTF_UP) == 0)
>               return (NULL);
> 
> -----------------------------------------------------------------------
> 
> 'rt' is not released.
> 
> Found by The Brainy Code Scanner.

Indeed!  Thanks for the report, I just committed a fix.

Martin

Reply via email to