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

Kevin Lo kevlo at FreeBSD.org
Sat Sep 29 16:27:14 UTC 2012


Author: kevlo
Date: Sat Sep 29 16:27:13 2012
New Revision: 241050
URL: http://svn.freebsd.org/changeset/base/241050

Log:
  If devclass_get_devices(9) returns success but a count of 0,
  free the pointer.

Modified:
  head/sys/dev/usb/usb_pf.c

Modified: head/sys/dev/usb/usb_pf.c
==============================================================================
--- head/sys/dev/usb/usb_pf.c	Sat Sep 29 16:19:01 2012	(r241049)
+++ head/sys/dev/usb/usb_pf.c	Sat Sep 29 16:27:13 2012	(r241050)
@@ -111,6 +111,7 @@ usbpf_uninit(void)
 		if (ubus != NULL && ubus->ifp != NULL)
 			usbpf_clone_destroy(&usbpf_cloner, ubus->ifp);
 	}
+	free(devlp, M_TEMP);
 }
 
 static int


More information about the svn-src-head mailing list