Ignore vconfkey value change for AVC mode on
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / bt-service-hid.c
index 60fe60d..28e47f7 100644 (file)
@@ -188,8 +188,6 @@ int _bt_hid_connect(int request_id,
 
        if (ret != BLUETOOTH_ERROR_NONE) {
                BT_ERR("_bt_connect_profile Error");
-               g_free(func_data->address);
-               g_free(func_data);
                return ret;
        }
        return BLUETOOTH_ERROR_NONE;
@@ -225,8 +223,6 @@ int _bt_hid_disconnect(int request_id,
 
        if (ret != BLUETOOTH_ERROR_NONE) {
                BT_ERR("_bt_disconnect_profile Error");
-               g_free(func_data->address);
-               g_free(func_data);
                return ret;
        }
 
@@ -242,4 +238,3 @@ int _bt_hid_enable_barcode_feature(void)
 
        return BLUETOOTH_ERROR_NONE;
 }
-