Commit 21c2975a authored by Simon Glass's avatar Simon Glass Committed by Tom Rini

mkimage: Fix missing free() in fit_extract_data()

The 'buf' variable is not freed. Fix it.

Reported-by: Coverity (CID: 138492)
Signed-off-by: default avatarSimon Glass <>
Reviewed-by: default avatarTom Rini <>
parent b97d71e2
......@@ -452,6 +452,8 @@ static int fit_extract_data(struct image_tool_params *params, const char *fname)
munmap(fdt, sbuf.st_size);
if (buf)
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