Change-Id: I075579e5d8511cc1b654723be0484e7f6e2331ca
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
conn = _bt_hal_get_system_gconn();
if (conn == NULL) {
ERR("conn NULL");
+ g_free(conn_mtu);
return BT_STATUS_FAIL;
}
gattc_client = __bt_find_gatt_client_info_from_conn_id(conn_id);
if (gattc_client == NULL) {
INFO("GATT client conn info not found");
+ g_free(conn_mtu);
return BT_STATUS_FAIL;
}
device_path = _bt_hal_get_device_object_path(device_address);
if (device_path == NULL) {
ERR("device_path NULL : [%s]", device_address);
+ g_free(conn_mtu);
return BT_STATUS_FAIL;
}
g_free(device_path);
if (NULL == device_proxy) {
ERR("device_proxy returned NULL");
+ g_free(conn_mtu);
return BT_STATUS_FAIL;
}