]> git.dujemihanovic.xyz Git - u-boot.git/commit
mkimage: Close the file when unable to get its size
authorSimon Glass <sjg@chromium.org>
Wed, 16 Mar 2016 13:45:37 +0000 (07:45 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:19 +0000 (12:16 -0400)
commitb12a81c4ccfdfac1eabefdaeba2a19fab3102716
treea8c821297ec4c2ae464386f7c562c7a10501caf5
parent4708a07c7cfa754658d06283a399ddb175278de7
mkimage: Close the file when unable to get its size

There is a missing close() on the error path. Add it.

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