diff options
-rw-r--r-- | tools/fit_image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index c37cae3b260..4aeabbcfe97 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -534,8 +534,7 @@ 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); + free(buf); close(fd); return ret; } |