Date: Sat, 29 Sep 2012 16:27:13 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r241050 - head/sys/dev/usb Message-ID: <201209291627.q8TGRDsT056120@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209291627.q8TGRDsT056120>