mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-30 00:13:43 +02:00
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>
This commit is contained in:
parent
500b423c0c
commit
5a8b24478f
@ -332,6 +332,7 @@ int read_flash(struct flashchip *flash, char *filename, unsigned int exclude_sta
|
|||||||
|
|
||||||
numbytes = fwrite(buf, 1, size, image);
|
numbytes = fwrite(buf, 1, size, image);
|
||||||
fclose(image);
|
fclose(image);
|
||||||
|
free(buf);
|
||||||
printf("%s.\n", numbytes == size ? "done" : "FAILED");
|
printf("%s.\n", numbytes == size ? "done" : "FAILED");
|
||||||
if (numbytes != size)
|
if (numbytes != size)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user