If devclass_get_devices(9) returns success but a count of 0,

free the pointer.
This commit is contained in:
Kevin Lo 2012-09-29 16:27:13 +00:00
parent e81fdb14a9
commit 000811380d

View File

@ -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