summaryrefslogtreecommitdiff
path: root/src/bluetooth-common.c
diff options
context:
space:
mode:
authorDoHyun Pyun <dh79.pyun@samsung.com>2017-04-04 13:48:29 +0900
committerDoHyun Pyun <dh79.pyun@samsung.com>2017-04-04 15:06:14 +0900
commit7d9b9b462c8cb28b59e6e82440218928441c34b8 (patch)
treebf8cdb9e2b331c9319f702f3178db02a94a82ce9 /src/bluetooth-common.c
parentfd0b76520d389d6960070bfa1c4114fb6bff1611 (diff)
downloadbluetooth-7d9b9b462c8cb28b59e6e82440218928441c34b8.tar.gz
bluetooth-7d9b9b462c8cb28b59e6e82440218928441c34b8.tar.bz2
bluetooth-7d9b9b462c8cb28b59e6e82440218928441c34b8.zip
Fix the svace issue (11726, 176047, 183477)submit/tizen/20170404.073146
Change-Id: Ia399f87f8d869f18afe7fef883dfea36a891b9e8 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Diffstat (limited to 'src/bluetooth-common.c')
-rw-r--r--src/bluetooth-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c
index 42c1b53..7d1b12e 100644
--- a/src/bluetooth-common.c
+++ b/src/bluetooth-common.c
@@ -3591,6 +3591,7 @@ int _bt_gatt_client_update_all(bt_gatt_client_h client)
ret = _bt_get_error_code(ret);
if (ret != BT_ERROR_NONE) {
BT_ERR("bluetooth_gatt_get_primary_services is failed");
+ g_free(prim_svc);
return ret;
}
@@ -3678,6 +3679,7 @@ int _bt_gatt_client_update_all(bt_gatt_client_h client)
g_strfreev(prim_svc->handle);
g_free(prim_svc);
+ prim_svc = NULL;
if (svc_list == NULL)
return BT_ERROR_OPERATION_FAILED;