]> git.baikalelectronics.ru Git - uboot.git/commit
tools: imx8mimage: Fix handle leak
authorMikhail Ilin <ilin.mikhail.ol@gmail.com>
Wed, 23 Nov 2022 10:48:44 +0000 (13:48 +0300)
committerStefano Babic <sbabic@denx.de>
Mon, 30 Jan 2023 22:23:01 +0000 (23:23 +0100)
commitcb67eaf42f49bbedadb68104e897956c34f56877
tree3ea005fdf76b0043ab6eb4a6f5d72158b0228ca8
parent5a91540e35f8a235aad71fb9e8ad097e7cf624ca
tools: imx8mimage: Fix handle leak

The handle "fd" was created in imx8mimage.c:178 by calling
 the "fopen" function and is lost in imx8mimage.c:210.
 Should close the 'fd' file descriptor before exiting
 the parse_cfg_file(char *name) function.

Fixes: e1a587f058cc ("tools: add i.MX8M image support")
Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
tools/imx8mimage.c