NetBSD Problem Report #18457
Received: (qmail 26411 invoked by uid 605); 29 Sep 2002 01:10:36 -0000
Message-Id: <20020929011035.0C8F011122@narn.netbsd.org>
Date: Sat, 28 Sep 2002 18:10:35 -0700 (PDT)
From: nyar-junk@int0rnet.net
Sender: gnats-bugs-owner@netbsd.org
Reply-To: nyar-junk@int0rnet.net
To: gnats-bugs@gnats.netbsd.org
Subject: Fix for bad memory leak in if_url.c
X-Send-Pr-Version: www-1.0
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 29 01:11:00 +0000 2002
>Closed-Date: Sun Sep 29 10:20:47 +0000 2002
>Last-Modified: Sun Sep 29 10:20:47 +0000 2002
>Originator: nyarlathotep
>Release: current
>Organization:
>Environment:
..
>Description:
Found this on OpenBSD, since you folks are using the same borked driver, figured you would want to know...
>How-To-Repeat:
Use the if_url.c USB ethernet driver. Send some traffic. Recieve some traffic. Watch your mbufs fill up and never come back.
>Fix:
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;
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/18457 CVS commit: syssrc/sys/dev/usb
Date: Sun, 29 Sep 2002 13:19:22 +0300 (EEST)
Module Name: syssrc
Committed By: martin
Date: Sun Sep 29 10:19:21 UTC 2002
Modified Files:
syssrc/sys/dev/usb: if_url.c
Log Message:
Plug memory leak. From OpenBSD via PR kern/18457.
To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 syssrc/sys/dev/usb/if_url.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: martin
State-Changed-When: Sun Sep 29 03:20:14 PDT 2002
State-Changed-Why:
Commited, thanks a lot!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.