From 2fbfe3b420e55bf2fa373ef9318ff5ad6cf4f032 Mon Sep 17 00:00:00 2001 From: Zhang Hai Peng Date: Fri, 17 Oct 2025 16:45:39 +0800 Subject: [PATCH] fix(ble/bluedroid): fix memory leak during deinit when service table is created but not started (cherry picked from commit ddd12f2498282e147044d1fe532a51aeb18875f9) Co-authored-by: zhanghaipeng --- components/bt/host/bluedroid/stack/gatt/gatt_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/host/bluedroid/stack/gatt/gatt_main.c b/components/bt/host/bluedroid/stack/gatt/gatt_main.c index 53d9be747de..e5d98237125 100644 --- a/components/bt/host/bluedroid/stack/gatt/gatt_main.c +++ b/components/bt/host/bluedroid/stack/gatt/gatt_main.c @@ -169,7 +169,7 @@ void gatt_free(void) gatt_cb.sign_op_queue = NULL; fixed_queue_free(gatt_cb.srv_chg_clt_q, NULL); gatt_cb.srv_chg_clt_q = NULL; - fixed_queue_free(gatt_cb.pending_new_srv_start_q, NULL); + fixed_queue_free(gatt_cb.pending_new_srv_start_q, osi_free_func); gatt_cb.pending_new_srv_start_q = NULL; list_node_t *p_node = NULL;