mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-27 22:24:22 +08:00
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:
parent
fc57aa92a4
commit
f4743109f3
@ -72,6 +72,7 @@ static bool send_message(const bdaddr_t *src, const bdaddr_t *dst,
|
||||
return false;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user