c.koehne@beckhoff.com has uploaded this change for review.

View Change

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;
}

To view, visit change 80248. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: em100
Gerrit-Branch: main
Gerrit-Change-Id: Id1849bb69d534928016256dd01e9550ef414d330
Gerrit-Change-Number: 80248
Gerrit-PatchSet: 1
Gerrit-Owner: c.koehne@beckhoff.com
Gerrit-MessageType: newchange