From ea5b13f92dbe82cc7c529587c6841c3595ba2212 Mon Sep 17 00:00:00 2001 From: Atul Rai Date: Fri, 10 Feb 2017 14:36:34 +0530 Subject: Fixed SVACE issues (Id: 11726 168836 171554) Change-Id: Ib8166f0e6a0996e55ebaf7d4e896faf4341de624 Signed-off-by: DoHyun Pyun --- src/bluetooth-common.c | 1 + test/bt_unit_test.c | 7 ++++--- 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; -- cgit v1.2.3