We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference:
I am not so sure if this is an issue with libusb-compat-0.1 or libusb.
The text was updated successfully, but these errors were encountered:
The following fix to libusb-compat-0.1 seems to fix the issue. But I am not so sure if it is the right fix or not.
mcuee@UbuntuSwift3:~/build/libusb-compat-0.1$ git diff diff --git a/libusb/core.c b/libusb/core.c index 3bc9c25..09068f3 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -584,14 +584,12 @@ static int initialize_device(struct usb_device *dev) dev->num_children = 0; dev->children = NULL; - libusb_ref_device(newlib_dev); return 0; } static void free_device(struct usb_device *dev) { clear_device(dev); - libusb_unref_device(dev->dev); free(dev); }
Sorry, something went wrong.
Comments welcome.
@tormodvolden
Please take a look at the proposed fix. Thanks. It seems to me this is not a bug of libusb but rather libusb-compat-0.1.
@tormodvolden and @hjelmn
Just wondering if you have some comments of this long standing issue. Thanks.
No branches or pull requests
Reference:
I am not so sure if this is an issue with libusb-compat-0.1 or libusb.
The text was updated successfully, but these errors were encountered: