Date: Fri, 29 May 2009 16:15:57 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193042 - head/sys/dev/usb Message-ID: <200905291615.n4TGFvuq079926@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thompsa Date: Fri May 29 16:15:56 2009 New Revision: 193042 URL: http://svn.freebsd.org/changeset/base/193042 Log: Free device strings. Spotted by: HPS Modified: head/sys/dev/usb/usb_device.c Modified: head/sys/dev/usb/usb_device.c ============================================================================== --- head/sys/dev/usb/usb_device.c Fri May 29 15:00:04 2009 (r193041) +++ head/sys/dev/usb/usb_device.c Fri May 29 16:15:56 2009 (r193042) @@ -1990,6 +1990,9 @@ usb2_free_device(struct usb_device *udev #endif /* free device */ + free(udev->serial, M_USB); + free(udev->manufacturer, M_USB); + free(udev->product, M_USB); free(udev, M_USB); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905291615.n4TGFvuq079926>