]> git.ipfire.org Git - people/ms/u-boot.git/commit - tools/zynqimage.c
tools: mkimage: Call fclose in error path
authorMichal Simek <michal.simek@xilinx.com>
Tue, 20 Dec 2016 08:58:31 +0000 (09:58 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 27 Dec 2016 16:24:16 +0000 (11:24 -0500)
commitac71d4103e94f943a83e9905b0c7c9d3deff54df
tree1b1fdbb773b09d115f2e4201a127ad5577bacecf
parentd0cf5512e9747f6e370c1c682c0f60474b5ca8e9
tools: mkimage: Call fclose in error path

This patch is fixing missing fclose() calls
in error patch introduced by:
"tools: mkimage: Use fstat instead of stat to avoid malicious hacks"
(sha1: ebe0f53f48e8f9ecc823e533a85b05c13638c350)

Reported-by: Coverity (CID: 155064, 155065)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/zynqimage.c
tools/zynqmpimage.c