Dynamic memory, referenced by 'line', is allocated at ublimage.c:159 by calling function 'getline' and lost at ublimage.c:184.
Signed-off-by: Maks Mishin <[email protected]> --- tools/ublimage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ublimage.c b/tools/ublimage.c index 8f9b58c798..a1bd807bfa 100644 --- a/tools/ublimage.c +++ b/tools/ublimage.c @@ -178,6 +178,7 @@ static uint32_t parse_cfg_file(struct ubl_header *ublhdr, char *name) lineno, fld, &dcd_len); } } + free(line); fclose(fd); return dcd_len; -- 2.34.1

