Commit: a4741ef4bf6c6fb262b38a897312e929c2161cf9
Parent: efa90050937c5eabc6c70a466bd886f164388484
Author: Ildar Kamaletdinov <i.kamaletdinov@omp.ru>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-05-09 23:05:38
Tree: 695e9d3de14084bb2f28d9bc8da715234a0af817

tools: Fix memory leaks in btgatt-server/client According to man buffer allocated by getline() should be freed by the user program even if getline() failed. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

Diffstat

M tools/btgatt-client.c | 6 +++++-
M tools/btgatt-server.c | 5 ++++-

2 files changed, 9 insertions(+), 2 deletions(-)

View Full Diff | Patch