commit | 5a8b24478f09c186f89c9ad2d1bc3fb534014d8e | [log] [tgz] |
---|---|---|
author | Stephan Guilloux <stephan.guilloux@free.fr> | Mon Jun 01 21:37:00 2009 +0000 |
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | Mon Jun 01 21:37:00 2009 +0000 |
tree | bd18294b9fbe3594ae95c77183f867d93cbe5f55 | |
parent | 500b423c0c839e93ac679acad79f7580c13aeb88 [diff] |
Add a missing free() in read_flash() Corresponding to flashrom svn r562. Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
diff --git a/flashrom.c b/flashrom.c index c7e17d3..e9237a6 100644 --- a/flashrom.c +++ b/flashrom.c
@@ -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;