diff options
| author | Stephan Guilloux <stephan.guilloux@free.fr> | 2009-06-01 21:37:00 +0000 | 
|---|---|---|
| committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-06-01 21:37:00 +0000 | 
| commit | 5a8b24478f09c186f89c9ad2d1bc3fb534014d8e (patch) | |
| tree | bd18294b9fbe3594ae95c77183f867d93cbe5f55 | |
| parent | 500b423c0c839e93ac679acad79f7580c13aeb88 (diff) | |
| download | flashrom-5a8b24478f09c186f89c9ad2d1bc3fb534014d8e.tar.gz flashrom-5a8b24478f09c186f89c9ad2d1bc3fb534014d8e.tar.bz2 flashrom-5a8b24478f09c186f89c9ad2d1bc3fb534014d8e.zip | |
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.c | 1 | 
1 files changed, 1 insertions, 0 deletions
| @@ -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; | 
