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

mkimage: Fix missing free() in fit_extract_data()


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

Reported-by: Coverity (CID: 138492)
Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent b97d71e2
No related branches found
No related tags found
No related merge requests found
......@@ -452,6 +452,8 @@ static int fit_extract_data(struct image_tool_params *params, const char *fname)
err_munmap:
munmap(fdt, sbuf.st_size);
err:
if (buf)
free(buf);
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