From owner-freebsd-current@FreeBSD.ORG Fri Jul 20 02:09:48 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53E4316A418 for ; Fri, 20 Jul 2007 02:09:48 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from heff.fud.org.nz (203-109-251-39.static.bliink.ihug.co.nz [203.109.251.39]) by mx1.freebsd.org (Postfix) with ESMTP id F255213C483 for ; Fri, 20 Jul 2007 02:09:47 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: by heff.fud.org.nz (Postfix, from userid 1001) id C83C41CC58; Fri, 20 Jul 2007 14:09:46 +1200 (NZST) Date: Fri, 20 Jul 2007 14:09:46 +1200 From: Andrew Thompson To: FreeBSD Current Message-ID: <20070720020946.GA69737@heff.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Subject: USB memory leak X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2007 02:09:48 -0000 Hi, On my up to date current box I am noticing memory leak complaints when unload the usb module. This is from a straight load/unload: [dev7b]# kldload usb uhci0: port 0x1820-0x183f irq 11 at device 31.2 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered [dev7b]# kldunload usb uhub0: detached usb0: detached uhci0: detached Warning: memory type USBdev leaked memory on destroy (5 allocations, 2560 bytes leaked). Warning: memory type USB leaked memory on destroy (13 allocations, 1248 bytes leaked). FreeBSD dev7b.fud.org.nz 7.0-CURRENT FreeBSD 7.0-CURRENT #20: Thu Jul 19 20:42:41 NZST 2007 root@dev7b.fud.org.nz:/usr/obj/usr/src/sys/DEV7B i386 cheers, Andrew