[U-Boot] [PATCH 08/14] mkimage: Add a missing free() to fit_import_data()
Simon Glass
sjg at chromium.org
Wed Mar 16 14:45:38 CET 2016
The space allocated to fdt is not freed on error. Fix it.
Reported-by: Coverity (CID: 138494)
Signed-off-by: Simon Glass <sjg at chromium.org>
---
tools/fit_image.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/fit_image.c b/tools/fit_image.c
index 8a93ea3..8d58370 100644
--- a/tools/fit_image.c
+++ b/tools/fit_image.c
@@ -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;
}
--
2.7.0.rc3.207.g0ac5344
More information about the U-Boot
mailing list