summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Guilloux <stephan.guilloux@free.fr>2009-06-01 21:37:00 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-01 21:37:00 +0000
commit5a8b24478f09c186f89c9ad2d1bc3fb534014d8e (patch)
treebd18294b9fbe3594ae95c77183f867d93cbe5f55
parent500b423c0c839e93ac679acad79f7580c13aeb88 (diff)
downloadast2050-flashrom-5a8b24478f09c186f89c9ad2d1bc3fb534014d8e.zip
ast2050-flashrom-5a8b24478f09c186f89c9ad2d1bc3fb534014d8e.tar.gz
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>
-rw-r--r--flashrom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index c7e17d3..e9237a6 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -332,6 +332,7 @@ int read_flash(struct flashchip *flash, char *filename, unsigned int exclude_sta
numbytes = fwrite(buf, 1, size, image);
fclose(image);
+ free(buf);
printf("%s.\n", numbytes == size ? "done" : "FAILED");
if (numbytes != size)
return 1;
OpenPOWER on IntegriCloud