tools: Fix memory leak in hciconfig
authorIldar Kamaletdinov <i.kamaletdinov@omp.ru>
Sat, 7 May 2022 17:35:02 +0000 (20:35 +0300)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitf83abf0cb902c1c7bae714ddd00a92f2ca68f986
tree27cbbaa8c9e5dcbf378fc7335f09e186a333c996
parentd5a11256b150dcc8483b11b4ecd0438c8a6440a0
tools: Fix memory leak in hciconfig

printf() was using function that return dynamic allocated memory as
a parameter.

Found by Linux Verification Center (linuxtesting.org) with the SVACE
static analysis tool.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/hciconfig.c