Fix the coding style errors (bt-api)
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-request-sender.c
old mode 100755 (executable)
new mode 100644 (file)
index 1f00831..b240fb8
@@ -159,8 +159,8 @@ static void __bt_get_event_info(int service_function, GArray *output,
        case BT_AV_SOURCE_DISCONNECT:
                *event_type = BT_A2DP_SOURCE_EVENT;
                *event = BLUETOOTH_EVENT_AV_SOURCE_DISCONNECTED;
-               ret_if (output == NULL);
-               *param_data = &g_array_index (output, char, 0);
+               ret_if(output == NULL);
+               *param_data = &g_array_index(output, char, 0);
                break;
        case BT_HF_CONNECT:
                *event_type = BT_HF_AGENT_EVENT;
@@ -546,6 +546,9 @@ int _bt_async_send_request(int service_type, int service_function,
 
                g_array_free(in_param5, TRUE);
                break;
+       default:
+               g_free(cb_data);
+               break;
        }
 
        return BLUETOOTH_ERROR_NONE;