[PATCH] tools: imx8image: Fix handle leak
sbabic at denx.de
sbabic at denx.de
Tue Jan 31 10:50:37 CET 2023
> The handle "fd" was created in imx8image.c:249 by calling the "fopen"
> function and is lost in imx8image.c:282.
> Should close the 'fd' file descriptor before exiting the
> parse_cfg_file(image_t *param_stack, char *name) function.
> Fixes: a2b96ece5be1 ("tools: add i.MX8/8X image support")
> Signed-off-by: Mikhail Ilin <ilin.mikhail.ol at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list