tools: proftool: Fix potential memory leaks
authorMaks Mishin <maks.mishinfz@gmail.com>
Wed, 5 Feb 2025 16:26:07 +0000 (19:26 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 11 Feb 2025 14:17:23 +0000 (08:17 -0600)
commit4e18b47c73cdffb1dbd9ea196aeaff20e5030ade
tree4bc770514af56781797f678131fb21fc733b3e97
parent4545880c3c86ff48fc88073f390ccab9cff7c11b
tools: proftool: Fix potential memory leaks

Dynamic memory, referenced by 'line', is allocated by calling
function 'calloc' and lost when the function terminates with code -1.

Signed-off-by: Maks Mishin <maks.mishinFZ@gmail.com>
tools/proftool.c