commit | 9e28e9e564cc5b917a95d7df8282639935dc1e34 | [log] [tgz] |
---|---|---|
author | Sean Farrelly <sean.farrelly@outlook.com> | Wed Feb 14 10:37:58 2024 +0400 |
committer | Henrik Brix Andersen <henrik@brixandersen.dk> | Wed Feb 14 14:28:28 2024 +0100 |
tree | 8cbb0461e63973af9f1565ef9abf370459b196ca | |
parent | 6bb5076a2125e2446cf23e34139841cf320f2c40 [diff] |
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: Sean Farrelly <sean.farrelly@outlook.com>