libbusb_get_device_list() needs libusb_free_device_list() to avoid leaks
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Tue, 8 Jun 2010 11:16:19 +0000 (13:16 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 9 Jun 2010 16:03:06 +0000 (18:03 +0200)
commit9965050222905eecc664baf168f71a2b632cae2a
treec93e7b8fa3e68fe83c196eb0e13940594614bfc3
parent4486d8aa1fc1ece4b023bb22f2d2c16fb03314a2
libbusb_get_device_list() needs libusb_free_device_list() to avoid leaks

This second patch calls libbusb_get_device_list() in all code pathes of
ftdi_usb_open_desc_index() and ftdi_usb_open_string() after
libusb_get_device_list() was called.

ftdi_usb_find_all() still leaks  and will be handled in another patch when
these two patches are applied.
src/ftdi.c