diff options
| author | Maks Mishin <[email protected]> | 2025-02-02 20:05:17 +0300 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2025-02-27 09:53:26 -0300 |
| commit | 410ef0bb34b41f6ec23a167fb9e10f3f9483434b (patch) | |
| tree | ddda6217fd1b66aa5ee615ef6bd5feb21a4b9415 | |
| parent | 205bf9763208c8b94cdd4c723253d230f5a5866b (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 <[email protected]>
| -rw-r--r-- | tools/imx8image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/imx8image.c b/tools/imx8image.c index 15510d3e712..0135b190951 100644 --- a/tools/imx8image.c +++ b/tools/imx8image.c @@ -290,6 +290,7 @@ static uint32_t parse_cfg_file(image_t *param_stack, char *name) } } + free(line); fclose(fd); return 0; } |
