Commit 6e0ffce6 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini

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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent b12a81c4
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment