Xiaofan Chen
-
2021-08-16
- status: open --> wont-fix
- Group: --> Unstable_(example)
I believe usb_free_async should check return value of CloseHandle. Otherwise a situation when CloseHandle fails for some reason and not actually closes handle but usb_context_t is being freed nevertheless is entirely possible. This would lead to a resource leak which is nearly impossible to diagnose from a user application.