libusb_init() needs libusb_exit() to avoid leak
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Tue, 8 Jun 2010 10:24:19 +0000 (12:24 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 9 Jun 2010 15:59:09 +0000 (17:59 +0200)
src/ftdi.c

index 7b4b987..69e5068 100644 (file)
@@ -185,6 +185,7 @@ void ftdi_deinit(struct ftdi_context *ftdi)
         free(ftdi->readbuffer);
         ftdi->readbuffer = NULL;
     }
+    libusb_exit(NULL);
 }
 
 /**