mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix vendor hci memory leak
This commit is contained in:
parent
33c4e7f953
commit
712feb1e81
@ -2588,9 +2588,7 @@ void BTA_VendorCleanup (void)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (cmn_ble_vsc_cb.adv_inst_max > 0) {
|
||||
btm_ble_multi_adv_cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -840,10 +840,14 @@ void btm_ble_multi_adv_cleanup(void)
|
||||
}
|
||||
|
||||
#if BTM_DYNAMIC_MEMORY == TRUE
|
||||
if(btm_multi_adv_cb_ptr) {
|
||||
osi_free(btm_multi_adv_cb_ptr);
|
||||
osi_free(btm_multi_adv_idx_q_ptr);
|
||||
btm_multi_adv_cb_ptr = NULL;
|
||||
}
|
||||
if(btm_multi_adv_idx_q_ptr) {
|
||||
osi_free(btm_multi_adv_idx_q_ptr);
|
||||
btm_multi_adv_idx_q_ptr = NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user