components/bt: fix spp memory leak

closes https://github.com/espressif/esp-idf/issues/7238
This commit is contained in:
xiongweichao 2021-07-09 14:17:46 +08:00
parent a7468b519d
commit 7960110729

View File

@ -546,6 +546,11 @@ static void btc_spp_uninit(void)
osi_mutex_unlock(&spp_local_param.spp_slot_mutex);
} 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) {
esp_spp_cb_param_t param;
param.uninit.status = ret;