commit | 2b3d0b7b86a4c7e28d8d5ed9a97b7e4e13e27eac | [log] [tgz] |
---|---|---|
author | Maks Mishin <maks.mishinfz@gmail.com> | Sun Feb 02 20:05:17 2025 +0300 |
committer | Fabio Estevam <festevam@gmail.com> | Thu Feb 27 09:53:26 2025 -0300 |
tree | ddda6217fd1b66aa5ee615ef6bd5feb21a4b9415 | |
parent | 1fb8a00be01c5fc12e794cbaba9105141693dd0c [diff] |
tools: imx8image: Fix potential memory leak Dynamic memory, referenced by 'line', is allocated at imx8image.c:270 by calling function 'getline' and lost at imx8image.c:294. Signed-off-by: Maks Mishin <maks.mishinFZ@gmail.com>
diff --git a/tools/imx8image.c b/tools/imx8image.c index 15510d3..0135b19 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c
@@ -290,6 +290,7 @@ } } + free(line); fclose(fd); return 0; }