c.koehne@beckhoff.com has uploaded this change for review. ( https://review.coreboot.org/c/em100/+/80248?usp=email )
Change subject: em100: free device list when calling em100 --list ......................................................................
em100: free device list when calling em100 --list
After querying the device list by calling libusb_get_device_list, you have to free the list with lib_usb_free_device_list to properly clean up the resources allocated by libusb. This solves some warnings issued by libusb when calling `em100 --list`.
Change-Id: Id1849bb69d534928016256dd01e9550ef414d330 Signed-off-by: Corvin Köhne c.koehne@beckhoff.com --- M em100.c 1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/48/80248/1
diff --git a/em100.c b/em100.c index 90bf882..cfcecb9 100644 --- a/em100.c +++ b/em100.c @@ -539,6 +539,7 @@ } if (count == 0) printf("No EM100pro devices found.\n"); + libusb_free_device_list(devs, 1); libusb_exit(ctx); return 1; }