Fix the warning errors
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-gatt-client.c
index 6f3daca..6895eb0 100644 (file)
@@ -480,13 +480,6 @@ bt_status_t _hal_gattc_disconnect(int client_if, const bt_bdaddr_t *bd_addr,
                        NULL,
                        (GAsyncReadyCallback)__le_disconnection_req_cb, gattc_data);
        return ret;
-fail:
-       if (device_proxy)
-               g_object_unref(device_proxy);
-
-       g_free(gattc_data);
-
-       return ret;
 }
 
 /** Disconnect a remote device or cancel a pending connection */
@@ -2992,14 +2985,6 @@ static bt_status_t __bt_connect_le_device_internal(int client_if, const bt_bdadd
                        (GAsyncReadyCallback)__le_connection_req_cb, gattc_data);
 
        return ret;
-
-fail:
-       if (device_proxy)
-               g_object_unref(device_proxy);
-
-       g_free(gattc_data);
-
-       return ret;
 }
 
 static bt_status_t _bt_hold_current_advertising()