obex-client: Fix leaked_handle
authorGopal Tiwari <gtiwari@redhat.com>
Tue, 31 May 2022 07:41:13 +0000 (13:11 +0530)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commita1b2bb620006535fa21ea39f0a8ff951b49eb5ef
tree75e1ce878de8d47977f7362bb904c32e0e222880
parente8d82484b59c06eca9150541228537185a88765d
obex-client: Fix leaked_handle

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

bluez-5.64/tools/obex-client-tool.c:315: leaked_handle: Handle variable
"sk" 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/obex-client-tool.c