diff options
author | Simon Glass <sjg@chromium.org> | 2016-03-16 07:45:38 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-22 12:16:20 -0400 |
commit | 6e0ffce6cb50beb2fdf2cb0112cb359a7dede723 (patch) | |
tree | 3022f99df4cfc5d45b9a340c6aaef99bfa6915fe /tools | |
parent | b12a81c4ccfdfac1eabefdaeba2a19fab3102716 (diff) | |
download | u-boot-imx-6e0ffce6cb50beb2fdf2cb0112cb359a7dede723.zip u-boot-imx-6e0ffce6cb50beb2fdf2cb0112cb359a7dede723.tar.gz u-boot-imx-6e0ffce6cb50beb2fdf2cb0112cb359a7dede723.tar.bz2 |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/fit_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index 8a93ea3..8d58370 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -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; } |