ftdi_eeprom/main.c: Clean up the FTDI structure on exit
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Thu, 8 Sep 2011 08:11:27 +0000 (10:11 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 8 Sep 2011 15:39:53 +0000 (17:39 +0200)
Valgrind still reports an error, but I suspect it is with (my version?)
of confuse.

ftdi_eeprom/main.c

index 931045f..b33266f 100644 (file)
@@ -383,6 +383,7 @@ cleanup:
     }
 
     ftdi_deinit (ftdi);
+    ftdi_free (ftdi);
 
     cfg_free(cfg);