Subject: RE: libftdi-1.0: Reduce memory leaks
Uwe Bonnes wrote:
>> libusb_init() requires libusb_exit() to free all memory. I placed this
>> in ftdi_free(). libusb_get_device_list() also requires a
>> libusb_free_device_list(). This free must happen after an libusb_open()
>> in all the error pathes, so I added a define for the error case and the
>> the libusb_open() call must be remembered.
>> + libusb_exit(NULL);
I admit I haven't been looking at libftdi-1.0 much yet, but does libftdi-1
not yet support non-default libusb contexts (i.e., libusb_context * !=
NULL)? That will be a stumbling point before I can upgrade from 0.1...
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx