Skip to content

Commit 741651b

Browse files
committed
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.
1 parent 97482d4 commit 741651b

File tree

1 file changed

+0
-1
lines changed
  • nimble/host/mesh/src

1 file changed

+0
-1
lines changed

nimble/host/mesh/src/adv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ struct os_mbuf *bt_mesh_adv_create_from_pool(struct os_mbuf_pool *pool,
232232
adv->ref_cnt = 1;
233233
ble_npl_event_set_arg(&adv->ev, buf);
234234

235-
os_mbuf_free_chain(buf);
236235
return buf;
237236
}
238237

0 commit comments

Comments
 (0)