From 000811380da73775ae7dbce70072030cf7247d82 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Sat, 29 Sep 2012 16:27:13 +0000 Subject: [PATCH] If devclass_get_devices(9) returns success but a count of 0, free the pointer. --- sys/dev/usb/usb_pf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/usb/usb_pf.c b/sys/dev/usb/usb_pf.c index b7b29d7bfec..7a1f02b896c 100644 --- a/sys/dev/usb/usb_pf.c +++ b/sys/dev/usb/usb_pf.c @@ -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