projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
723a97e
)
Fix the coverity issue (Resource leak)
96/228396/2
accepted/tizen/5.5/unified/20200323.173147
submit/tizen_5.5/20200323.010455
author
DoHyun Pyun
<dh79.pyun@samsung.com>
Mon, 23 Mar 2020 00:15:22 +0000
(09:15 +0900)
committer
DoHyun Pyun
<dh79.pyun@samsung.com>
Mon, 23 Mar 2020 00:45:41 +0000
(09:45 +0900)
Change-Id: I94e04b563a9fa7af11e0c6c49ff115f987d9270e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt-client.c
patch
|
blob
|
history
diff --git
a/bt-oal/bluez_hal/src/bt-hal-gatt-client.c
b/bt-oal/bluez_hal/src/bt-hal-gatt-client.c
index f0c82ecda918c0cdee4bddcc0bc2fe008c92a0d1..4a0a9e69f141c2b052476b5734f537d81c3820d6 100644
(file)
--- a/
bt-oal/bluez_hal/src/bt-hal-gatt-client.c
+++ b/
bt-oal/bluez_hal/src/bt-hal-gatt-client.c
@@
-3886,7
+3886,9
@@
static bt_status_t __hal_gattc_get_service_info(hal_gattc_server_info_t *server_
} else if (g_strcmp0(key, "Characteristics") == 0) {
g_variant_get(value, "ao", &char_iter);
if (char_iter != NULL) {
- gp_char_array = g_ptr_array_new();
+ if (gp_char_array == NULL)
+ gp_char_array = g_ptr_array_new();
+
while (g_variant_iter_loop(char_iter, "&o", &char_handle)) {
DBG("char_handle: %s", char_handle);
g_ptr_array_add(gp_char_array, (gpointer)char_handle);