From e00186e6831959b307e66139d607b1aa789a918a Mon Sep 17 00:00:00 2001 From: lly Date: Mon, 2 Sep 2019 14:55:09 +0800 Subject: [PATCH] ble_mesh: fix canceled buffer memory leak --- components/bt/esp_ble_mesh/mesh_core/adv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/bt/esp_ble_mesh/mesh_core/adv.c b/components/bt/esp_ble_mesh/mesh_core/adv.c index a1c4cf9825..21fd0580c9 100644 --- a/components/bt/esp_ble_mesh/mesh_core/adv.c +++ b/components/bt/esp_ble_mesh/mesh_core/adv.c @@ -189,6 +189,8 @@ static void adv_thread(void *p) BT_ERR("%s, xQueueSendToFront failed", __func__); } } + } else { + net_buf_unref(*buf); } /* Give other threads a chance to run */