commit | 7ed5b7237e3b60b28126ec87329ace194cd70783 | [log] [tgz] |
---|---|---|
author | Mikhail Ilin <ilin.mikhail.ol@gmail.com> | Wed Nov 23 13:59:49 2022 +0300 |
committer | Stefano Babic <sbabic@denx.de> | Mon Jan 30 23:23:01 2023 +0100 |
tree | 39a0f54b3000d96e3e6a7b089103ba461f476ed6 | |
parent | 282772102aba4692da22bd57eef4bc3939b0fbb7 [diff] |
tools: imx8image: Fix handle leak 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@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>