Commit 5a8b2447 authored by Stephan Guilloux's avatar Stephan Guilloux Committed by Carl-Daniel Hailfinger
Browse files

Add a missing free() in read_flash()


Corresponding to flashrom svn r562.
Signed-off-by: default avatarStephan Guilloux <stephan.guilloux@free.fr>
Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
parent 500b423c
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment