Hello,
Just a missing free() in read_flash().
Make good use of it ;-)
Stephan.
Signed-off-by: Stephan Guilloux stephan.guilloux@free.fr Index: flashrom-free/trunk/flashrom.c ===================================================================
--- flashrom-free/trunk/flashrom.c (révision 547) +++ flashrom-free/trunk/flashrom.c (copie de travail) @@ -269,6 +269,7 @@
numbytes = fwrite(buf, 1, size, image); fclose(image); + free(buf); printf("%s.\n", numbytes == size ? "done" : "FAILED"); if (numbytes != size) return 1;