deinit BB MAC back memory when they are not used

This commit is contained in:
Jack
2022-05-29 00:13:32 +08:00
parent 1781ce3b98
commit 7a8b63869f
4 changed files with 27 additions and 0 deletions

View File

@@ -1244,6 +1244,9 @@ esp_err_t esp_bt_controller_deinit(void)
phy_init_flag();
esp_bt_power_domain_off();
#if CONFIG_MAC_BB_PD
esp_mac_bb_pd_mem_deinit();
#endif
free(osi_funcs_p);
osi_funcs_p = NULL;