mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
component/bt: Using osi_malloc instead of malloc
This commit is contained in:
parent
7937d083e6
commit
47a164b3ac
@ -478,7 +478,7 @@ static void btc_gap_bt_search_services(char *p_param)
|
|||||||
|
|
||||||
param.rmt_srvcs.stat = ESP_BT_STATUS_FAIL;
|
param.rmt_srvcs.stat = ESP_BT_STATUS_FAIL;
|
||||||
if (p_data->p_data->disc_res.result == BTA_SUCCESS) {
|
if (p_data->p_data->disc_res.result == BTA_SUCCESS) {
|
||||||
uuid_list = malloc(sizeof(esp_bt_uuid_t) * p_data->p_data->disc_res.num_uuids);
|
uuid_list = osi_malloc(sizeof(esp_bt_uuid_t) * p_data->p_data->disc_res.num_uuids);
|
||||||
if (uuid_list) {
|
if (uuid_list) {
|
||||||
param.rmt_srvcs.stat = ESP_BT_STATUS_SUCCESS;
|
param.rmt_srvcs.stat = ESP_BT_STATUS_SUCCESS;
|
||||||
param.rmt_srvcs.num_uuids = p_data->p_data->disc_res.num_uuids;
|
param.rmt_srvcs.num_uuids = p_data->p_data->disc_res.num_uuids;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user