mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
mkimage: Add a missing free() to fit_import_data()
The space allocated to fdt is not freed on error. Fix it. Reported-by: Coverity (CID: 138494) Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
b12a81c4cc
commit
6e0ffce6cb
1 changed files with 1 additions and 0 deletions
|
@ -541,6 +541,7 @@ static int fit_import_data(struct image_tool_params *params, const char *fname)
|
|||
ret = 0;
|
||||
|
||||
err:
|
||||
free(fdt);
|
||||
close(fd);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue