git://developer.intra2net.com
/
libftdi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix _sleep warning on MinGW
[libftdi]
/
ftdi_eeprom
/
main.c
diff --git
a/ftdi_eeprom/main.c
b/ftdi_eeprom/main.c
index
931045f
..
74ae7e2
100644
(file)
--- a/
ftdi_eeprom/main.c
+++ b/
ftdi_eeprom/main.c
@@
-346,6
+346,7
@@
int main(int argc, char *argv[])
{
if (filename != NULL && strlen(filename) > 0)
{
+ eeprom_buf = malloc(my_eeprom_size);
FILE *fp = fopen(filename, "rb");
fread(eeprom_buf, 1, my_eeprom_size, fp);
fclose(fp);
@@
-383,6
+384,7
@@
cleanup:
}
ftdi_deinit (ftdi);
+ ftdi_free (ftdi);
cfg_free(cfg);