Hello,
Just a missing free() in read_flash().
Make good use of it ;-)
Stephan.
Signed-off-by: Stephan Guilloux <[email protected]>
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;
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;
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot