firmware-utils/mkchkimg: fix possible resource leaks
authorAndrea Dalla Costa <andrea@dallacosta.me>
Sat, 11 Jan 2020 22:10:51 +0000 (23:10 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Jan 2020 16:48:50 +0000 (17:48 +0100)
commit8e3b3152e5402b574ff66b149cfdc6e42d61db54
tree73e4fc30a7af30c728f8894cade372d74286035e
parent0ae0f48cec08e4698e678f5e145533209491e855
firmware-utils/mkchkimg: fix possible resource leaks

Add missing `fclose` calls for file pointers `kern_fp`, `fs_fp`
and `out_fp`.
Not closing files could lead to resource leaks.

Signed-off-by: Andrea Dalla Costa <andrea@dallacosta.me>
tools/firmware-utils/src/mkchkimg.c