tools: imx8mimage: Fix potential memory leak
authorMaks Mishin <maks.mishinfz@gmail.com>
Sun, 2 Feb 2025 17:10:39 +0000 (20:10 +0300)
committerFabio Estevam <festevam@gmail.com>
Thu, 27 Feb 2025 12:53:45 +0000 (09:53 -0300)
commit959f3316592b5f272ccd36be00a860856dc5da5b
tree85b60ead99aa272005938a31c7f8cc52e331003d
parent410ef0bb34b41f6ec23a167fb9e10f3f9483434b
tools: imx8mimage: Fix potential memory leak

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 <maks.mishinFZ@gmail.com>
tools/imx8mimage.c