mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +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:

committed by
Carl-Daniel Hailfinger

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;
|
||||||
|
Reference in New Issue
Block a user