projects
/
platform
/
core
/
api
/
bluetooth.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28c0069
)
Resolve coverty issue alloc free mismatch
66/224866/1
author
Sudipto
<sudipto.bal@samsung.com>
Thu, 13 Feb 2020 13:58:54 +0000
(19:28 +0530)
committer
Sudipto
<sudipto.bal@samsung.com>
Thu, 13 Feb 2020 13:58:54 +0000
(19:28 +0530)
Change-Id: I0cad0fb988f2d93b81f4d9b6d38c6cdbd5d66536
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
src/bluetooth-tds.c
patch
|
blob
|
history
diff --git
a/src/bluetooth-tds.c
b/src/bluetooth-tds.c
index
0d66706
..
e31a3c4
100644
(file)
--- a/
src/bluetooth-tds.c
+++ b/
src/bluetooth-tds.c
@@
-1085,7
+1085,7
@@
int bt_tds_seeker_create(const char *remote_address, bt_tds_seeker_h *seeker)
seeker_s->remote_address = g_strdup(remote_address);
if (seeker_s->remote_address == NULL) {
__bt_tds_reset_seeker_data(seeker_s);
- free(seeker_s);
+
g_
free(seeker_s);
error_code = BT_ERROR_OUT_OF_MEMORY;
BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
return error_code;