Skip to content
Commit 9e28e9e5 authored by Sean Farrelly's avatar Sean Farrelly Committed by Henrik Brix Andersen
Browse files

samples: Bluetooth: Broadcast Audio Source: Fix potential memory leak



In error cases, where send_data() returns early, the allocated net_buf
is not free'd, causing a memory leak affecting the net_buf pool.
Fix this by freeing the allocated net_buf before returning early
from send_data().

Signed-off-by: default avatarSean Farrelly <sean.farrelly@outlook.com>
parent 6bb5076a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment