Summary: | segmentation fault in libusb usage | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Markus Heinz <markus.heinz> | ||||
Component: | usb | Assignee: | freebsd-usb (Nobody) <usb> | ||||
Status: | Closed Not A Bug | ||||||
Severity: | Affects Only Me | CC: | hselasky | ||||
Priority: | --- | ||||||
Version: | 10.1-STABLE | ||||||
Hardware: | i386 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Markus Heinz
2015-01-03 23:02:57 UTC
Hi, You are accessing freed memory. If you want the "device" to stay around after "libusb_close()" please use "libusb_ref_device()" to get an extra reference on it. --HPS Hi. Thank you for the good advice. Using libusb_ref_device() solves my problem. Best regards Markus Heinz You're welcome! Feel free to submit more bug reports if you find any further issues. --HPS |