[coreboot] [flashrom] r562 - trunk
svn at coreboot.org
svn at coreboot.org
Mon Jun 1 23:37:01 CEST 2009
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 at free.fr>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at 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;
More information about the coreboot
mailing list