mkimage: Ensure file is closed in fdt_property_file()
authorSimon Glass <sjg@chromium.org>
Wed, 16 Mar 2016 13:45:42 +0000 (07:45 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:27 +0000 (12:16 -0400)
commit3bd3a54ac515c26c6f0abd001d74fac2c86a7e1d
treeced97b8abc752ca5e63f3fb342028ea85f8da08b
parent7b0bbd886d553c3cffc5b3eb29256b05856076ee
mkimage: Ensure file is closed in fdt_property_file()

The file that is opened is not closed in all cases. Fix it.

Reported-by: Coverity (CID: 138490)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/fit_image.c