mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-24 19:00:00 +00:00
mesh: don't free mbuf in bt_mesh_adv_create_from_pool
Coverity caught that freeing of buf in this function was unreachable; it's correct, as this buf shouldn't be freed at all.
This commit is contained in:
committed by
Krzysztof Kopyściński
parent
97482d497d
commit
741651b8a5
@@ -232,7 +232,6 @@ struct os_mbuf *bt_mesh_adv_create_from_pool(struct os_mbuf_pool *pool,
|
||||
adv->ref_cnt = 1;
|
||||
ble_npl_event_set_arg(&adv->ev, buf);
|
||||
|
||||
os_mbuf_free_chain(buf);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user