tools: imx8image: Fix potential memory leak
authorMaks Mishin <maks.mishinfz@gmail.com>
Sun, 2 Feb 2025 17:05:17 +0000 (20:05 +0300)
committerFabio Estevam <festevam@gmail.com>
Thu, 27 Feb 2025 12:53:26 +0000 (09:53 -0300)
commit410ef0bb34b41f6ec23a167fb9e10f3f9483434b
treeddda6217fd1b66aa5ee615ef6bd5feb21a4b9415
parent205bf9763208c8b94cdd4c723253d230f5a5866b
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>
tools/imx8image.c