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)
commit6ed749b897127e8857822df958962c8ceeafc65a
treed038ed04989760de1d8115ed5ac96619ba73b88a
parent77806ad75a01458eb7ee4fcd0178b7f1600830fd
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>
src/mkchkimg.c