firmware-utils/hcsmakeimage: fix possible memory leak and resource leaks
authorAndrea Dalla Costa <andrea@dallacosta.me>
Sat, 11 Jan 2020 21:57:58 +0000 (22:57 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 8 Jul 2020 14:07:05 +0000 (16:07 +0200)
commit39850fc681c235639da0f80b3f0d3771a319daac
tree17221558a8a99f1a5fe0ed6b2389a1d64ac21b9d
parentc473567a0e9c0554948fbadfbbe31894f04d1e65
firmware-utils/hcsmakeimage: fix possible memory leak and resource leaks

Add missing calls to `free` for variable `filebuffer`.
Add missing calls to `fclose` for variables `fd` and `fd_out`.

Signed-off-by: Andrea Dalla Costa <andrea@dallacosta.me>
src/hcsmakeimage.c