[coreboot] [flashrom] Missing free() in read_flash (just for the form)
Stephan GUILLOUX
stephan.guilloux at free.fr
Tue May 26 02:21:55 CEST 2009
Hello,
Just a missing free() in read_flash().
Make good use of it ;-)
Stephan.
Signed-off-by: Stephan Guilloux <stephan.guilloux at 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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flashrom-free.patch
Type: text/x-diff
Size: 399 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090526/684f3235/attachment.bin>
More information about the coreboot
mailing list