mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/spp_memory_leak_v4.1' into 'release/v4.1'
Fix spp memory leak(v4.1) See merge request espressif/esp-idf!14863
This commit is contained in:
commit
e769c9fb43
@ -546,6 +546,11 @@ static void btc_spp_uninit(void)
|
|||||||
osi_mutex_unlock(&spp_local_param.spp_slot_mutex);
|
osi_mutex_unlock(&spp_local_param.spp_slot_mutex);
|
||||||
} while(0);
|
} while(0);
|
||||||
|
|
||||||
|
if (spp_local_param.tx_event_group) {
|
||||||
|
vEventGroupDelete(spp_local_param.tx_event_group);
|
||||||
|
spp_local_param.tx_event_group = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (ret != ESP_SPP_SUCCESS) {
|
if (ret != ESP_SPP_SUCCESS) {
|
||||||
esp_spp_cb_param_t param;
|
esp_spp_cb_param_t param;
|
||||||
param.uninit.status = ret;
|
param.uninit.status = ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user