summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtul Rai <a.rai@samsung.com>2017-02-10 14:36:34 +0530
committerDoHyun Pyun <dh79.pyun@samsung.com>2017-02-13 11:19:12 +0900
commitea5b13f92dbe82cc7c529587c6841c3595ba2212 (patch)
treeec49f5ddec0ffdc4165b1db9e6baeb5626820faf
parent0949556a08b04798fcf8a8a47aa95e7d352b314d (diff)
downloadbluetooth-ea5b13f92dbe82cc7c529587c6841c3595ba2212.tar.gz
bluetooth-ea5b13f92dbe82cc7c529587c6841c3595ba2212.tar.bz2
bluetooth-ea5b13f92dbe82cc7c529587c6841c3595ba2212.zip
Fixed SVACE issues (Id: 11726 168836 171554)submit/tizen/20170220.233016
Change-Id: Ib8166f0e6a0996e55ebaf7d4e896faf4341de624 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r--src/bluetooth-common.c1
-rw-r--r--test/bt_unit_test.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c
index ade64d4..56a80f7 100644
--- a/src/bluetooth-common.c
+++ b/src/bluetooth-common.c
@@ -3688,6 +3688,7 @@ done:
bt_gatt_client_handle_destroy);
client_s->services = svc_list;
+ g_free(prim_svc);
return BT_ERROR_NONE;
}
diff --git a/test/bt_unit_test.c b/test/bt_unit_test.c
index 5a69058..9358703 100644
--- a/test/bt_unit_test.c
+++ b/test/bt_unit_test.c
@@ -2427,9 +2427,6 @@ bool __bt_hps_client_svc_cb(int total,
index, total,
str ? str : "Unknown", uuid);
- g_free(str);
- g_free(uuid);
-
if (test_id == BT_UNIT_TEST_FUNCTION_HPS_CLIENT_PRINT_ALL) {
#ifdef ARCH64
ret = bt_gatt_service_foreach_characteristics(svc_handle,
@@ -2444,6 +2441,9 @@ bool __bt_hps_client_svc_cb(int total,
TC_PRT("bt_gatt_service_foreach_characteristics is failed : %d", ret);
}
}
+
+ g_free(str);
+ g_free(uuid);
return true;
}
@@ -2713,6 +2713,7 @@ bool __bt_gatt_included_service_cb(bt_gatt_attribute_h service,
bt_get_uuid_name(uuid, &name);
TC_PRT("uuid: %s [%s]", uuid, name);
+ g_free(value);
g_free(uuid);
g_free(name);
return true;