1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241050

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