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:
Simon Glass 2016-03-16 07:45:38 -06:00 committed by Tom Rini
parent b12a81c4cc
commit 6e0ffce6cb
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}