mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 12:44:23 +08:00
mkimage: Fix missing free() in fit_extract_data()
The 'buf' variable is not freed. Fix it. Reported-by: Coverity (CID: 138492) Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
b97d71e26a
commit
21c2975a94
@ -452,6 +452,8 @@ static int fit_extract_data(struct image_tool_params *params, const char *fname)
|
||||
err_munmap:
|
||||
munmap(fdt, sbuf.st_size);
|
||||
err:
|
||||
if (buf)
|
||||
free(buf);
|
||||
close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user