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.
This commit is contained in:
Gopal Tiwari 2022-05-31 13:11:09 +05:30 committed by Luiz Augusto von Dentz
parent fc57aa92a4
commit f4743109f3

View File

@ -72,6 +72,7 @@ static bool send_message(const bdaddr_t *src, const bdaddr_t *dst,
return false;
}
close(fd);
return true;
}