From 0f17b6616e5d00fa64384ffcfb9e90d6c12b6cb7 Mon Sep 17 00:00:00 2001 From: zhanghaipeng Date: Thu, 7 Sep 2023 19:59:33 +0800 Subject: [PATCH] fix(bt/bluedroid): Fix memory no free issue when disconneting for mesh --- .../bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c b/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c index a16fe928bf09..45c4d12fe642 100644 --- a/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c +++ b/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/mesh_bearer_adapt.c @@ -1615,6 +1615,7 @@ static void bt_mesh_bta_gattc_cb(tBTA_GATTC_EVT event, tBTA_GATTC *p_data) } break; case BTA_GATTC_CLOSE_EVT: + bta_gattc_clcb_dealloc_by_conn_id(p_data->close.conn_id); BT_DBG("BTA_GATTC_CLOSE_EVT"); break; case BTA_GATTC_CONNECT_EVT: {