mkimage: Fix missing free() and close() in fit_build()
authorSimon Glass <sjg@chromium.org>
Wed, 16 Mar 2016 13:45:41 +0000 (07:45 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 22 Mar 2016 16:16:27 +0000 (12:16 -0400)
commit7b0bbd886d553c3cffc5b3eb29256b05856076ee
treecbb61667065e1334f484d75510b30b16d0fb6b46
parent21c2975a9421c55938274a542976bc8d3746c1e3
mkimage: Fix missing free() and close() in fit_build()

Make sure that both the error path and normal return free the buffer and
close the file.

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