commit | 43fa93f6824980c937f14a2a9d15703d411b1e28 | [log] [tgz] |
---|---|---|
author | Carles Cufi <carles.cufi@nordicsemi.no> | Tue Sep 12 17:24:45 2017 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Sep 13 14:17:32 2017 +0200 |
tree | da573bd1560a85da10aca7a64e669fb6bc02aa36 | |
parent | b77b8e615bf436c3d43f3747ee92c65307993d69 [diff] |
samples: bluetooth: hci: Fix TX memory leak Whenever a buffer is sent to the driver via bt_raw using bt_send() the buffer might not be consumed if an error is returned. In that case unreference the buffer to avoid leaking the already allocated net_buf. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>