Skip to content

Free libusb device list in list_connected#5

Open
argilo wants to merge 1 commit into
myriadrf:masterfrom
argilo:fix-libusb-memory-leak
Open

Free libusb device list in list_connected#5
argilo wants to merge 1 commit into
myriadrf:masterfrom
argilo:fix-libusb-memory-leak

Conversation

@argilo
Copy link
Copy Markdown

@argilo argilo commented Nov 15, 2020

Valgrind shows that list_connected leaks about 26 kB of memory on each execution. This happens because the libusb device list allocated on line 209 is not freed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant