summaryrefslogtreecommitdiffstats
path: root/flashrom.c
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
commitc45ada5945779848e6224a0773bff7ff19f6a864 (patch)
treebd18294b9fbe3594ae95c77183f867d93cbe5f55 /flashrom.c
parentbdde74407a15e210579e38fb384d8f62385c3d11 (diff)
downloadflashrom-c45ada5945779848e6224a0773bff7ff19f6a864.zip
flashrom-c45ada5945779848e6224a0773bff7ff19f6a864.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>
Diffstat (limited to 'flashrom.c')
-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