cltest: Fix leaked_handle
authorGopal Tiwari <gtiwari@redhat.com>
Tue, 31 May 2022 07:41:09 +0000 (13:11 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commit0ecde03a3ae8a3fda5018a9973e205ac20cb7626
treeab95cbe58657154a5bd83f1854d5dc2fd93f999a
parent7efbb92154431340f30d5354b4459f60f888dc42
cltest: Fix leaked_handle

While performing static tool analysis using coverity found
following reports for resouse leak

bluez-5.64/tools/cltest.c:75: leaked_handle: Handle variable "fd"
going out of scope leaks the handle.

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