projects
/
platform
/
upstream
/
bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7efbb92
)
cltest: Fix leaked_handle
author
Gopal Tiwari
<gtiwari@redhat.com>
Tue, 31 May 2022 07:41:09 +0000
(13:11 +0530)
committer
Ayush Garg
<ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000
(14:55 +0530)
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
patch
|
blob
|
history
diff --git
a/tools/cltest.c
b/tools/cltest.c
index
2766fcd
..
250c93c
100755
(executable)
--- a/
tools/cltest.c
+++ b/
tools/cltest.c
@@
-72,6
+72,7
@@
static bool send_message(const bdaddr_t *src, const bdaddr_t *dst,
return false;
}
+ close(fd);
return true;
}