Author: hailfinger Date: 2009-06-01 23:37:00 +0200 (Mon, 01 Jun 2009) New Revision: 562
Modified: trunk/flashrom.c Log: Add a missing free() in read_flash().
Signed-off-by: Stephan Guilloux stephan.guilloux@free.fr Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Modified: trunk/flashrom.c =================================================================== --- trunk/flashrom.c 2009-06-01 21:30:42 UTC (rev 561) +++ trunk/flashrom.c 2009-06-01 21:37:00 UTC (rev 562) @@ -332,6 +332,7 @@
numbytes = fwrite(buf, 1, size, image); fclose(image); + free(buf); printf("%s.\n", numbytes == size ? "done" : "FAILED"); if (numbytes != size) return 1;