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 <[email protected]>
Acked-by: Carl-Daniel Hailfinger <[email protected]>


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;


-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to