commit | f3a6e8fc1b4cd4cd947601243b98094d4a966e16 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Mar 16 07:45:40 2016 -0600 |
committer | Tom Rini <trini@konsulko.com> | Tue Mar 22 12:16:21 2016 -0400 |
tree | 1bcb92b1f415df7e0a1d339dfbdb8e89f8916430 | |
parent | 4e7505f50927f80488e68d3fad5415086ce999b6 [diff] |
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 <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
diff --git a/tools/fit_image.c b/tools/fit_image.c index bfb43b2..e628212 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c
@@ -452,6 +452,8 @@ err_munmap: munmap(fdt, sbuf.st_size); err: + if (buf) + free(buf); close(fd); return ret; }