Fixed SVACE issues (Id: 11726 168836 171554) 93/114193/1 accepted/tizen/3.0/common/20170214.180325 accepted/tizen/3.0/ivi/20170213.225229 accepted/tizen/3.0/mobile/20170213.225133 accepted/tizen/3.0/tv/20170213.225206 accepted/tizen/3.0/wearable/20170213.225219 submit/tizen_3.0/20170213.044639
authorAtul Rai <a.rai@samsung.com>
Fri, 10 Feb 2017 09:06:34 +0000 (14:36 +0530)
committerAtul Rai <a.rai@samsung.com>
Fri, 10 Feb 2017 09:06:34 +0000 (14:36 +0530)
Change-Id: Ica158320e62df31cdcc085d373ea5ffd8a3601b3

src/bluetooth-common.c
test/bt_unit_test.c

index f17bb6a28008e067840082bddf3c95f54acc9541..df83e97880de42a91b6f3710f27b163ec35a7242 100644 (file)
@@ -3620,6 +3620,7 @@ done:
                        bt_gatt_client_handle_destroy);
 
        client_s->services = svc_list;
+       g_free(prim_svc);
 
        return BT_ERROR_NONE;
 }
index dffe4c547f18dc38459b8ce875acd171ae781d92..48c3641ac754fde156ab4ba657ec6b8b1a3efbd2 100644 (file)
@@ -2452,9 +2452,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,
@@ -2469,6 +2466,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;
 }
 
@@ -2739,6 +2739,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;