You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In function stlink_open_usb there is a possible memory leak when the call to libusb_open in line 854 fails. If ret is not zero, the code jumps to the on_error label and list is never freed.
A possible fix would be to free list in case of an error, or to check if list in the code that is exceuted when jumping to the on_error label.
The text was updated successfully, but these errors were encountered:
In function stlink_open_usb there is a possible memory leak when the call to libusb_open in line 854 fails. If ret is not zero, the code jumps to the on_error label and list is never freed.
A possible fix would be to free list in case of an error, or to check if list in the code that is exceuted when jumping to the on_error label.
The text was updated successfully, but these errors were encountered: