Skip to content
Snippets Groups Projects
Commit 6e0ffce6 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment