Dynamic memory, referenced by 'line', is allocated at imx8mimage.c:187 
by calling function 'getline' and lost at imx8mimage.c:210.

Signed-off-by: Maks Mishin <[email protected]>
---
 tools/imx8mimage.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/imx8mimage.c b/tools/imx8mimage.c
index d60d293e64..0f24ba75c0 100644
--- a/tools/imx8mimage.c
+++ b/tools/imx8mimage.c
@@ -206,6 +206,7 @@ static uint32_t parse_cfg_file(char *name)
                }
        }
 
+       free(line);
        fclose(fd);
        return 0;
 }
-- 
2.34.1

Reply via email to