If devclass_get_devices(9) returns success but a count of 0,
free the pointer.
This commit is contained in:
parent
e81fdb14a9
commit
000811380d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user