svn commit: r193042 - head/sys/dev/usb

Andrew Thompson thompsa at FreeBSD.org
Fri May 29 16:15:57 UTC 2009


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);
 }
 


More information about the svn-src-all mailing list