Fixed SVACE issues (Id: 11726 168836 171554) 07/114307/1 submit/tizen/20170220.233016
authorAtul Rai <a.rai@samsung.com>
Fri, 10 Feb 2017 09:06:34 +0000 (14:36 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 13 Feb 2017 02:19:12 +0000 (11:19 +0900)
Change-Id: Ib8166f0e6a0996e55ebaf7d4e896faf4341de624
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-common.c
test/bt_unit_test.c

index ade64d4c756f524135a7c848958f8733addb2c3e..56a80f7345f381cb3c116dd5dda28d40dc388cde 100644 (file)
@@ -3688,6 +3688,7 @@ done:
                        bt_gatt_client_handle_destroy);
 
        client_s->services = svc_list;
+       g_free(prim_svc);
 
        return BT_ERROR_NONE;
 }
index 5a69058c332470b5a36ecf1e7e51069e7b729498..93587033c5409d7770839a026457496aed6a4747 100644 (file)
@@ -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;