Subject: kern/18457: Fix for bad memory leak in if_url.c
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/28/2002 18:10:35
>Number:         18457
>Category:       kern
>Synopsis:       Fix for bad memory leak in if_url.c
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 28 18:11:00 PDT 2002
>Originator:     nyarlathotep
>Release:        current
Found this on OpenBSD, since you folks are using the same borked driver, figured you would want to know...
Use the if_url.c USB ethernet driver.  Send some traffic.  Recieve some traffic.  Watch your mbufs fill up and never come back.
It's a typo...

*** if_url.c    Wed Jul 24 19:18:10 2002
--- if_url.c.patched    Sat Sep 28 16:59:40 2002
*** 997,999 ****
!       m_free(c->url_mbuf);
        c->url_mbuf = NULL;
--- 997,999 ----
!       m_freem(c->url_mbuf);
        c->url_mbuf = NULL;