This patch corrects some of the bugs not connected to the functionality but to memory management etc. Two exceptions being about fixing the arguments order, which also could've caused some trouble. Ismagil Iskakov (11): btio: fix range validation of security level profiles/audio: add nullity checks src/shared: add nullity checks isotest: close fd after sending when nconn=1 obexd/client: fix err condition causing memleak profiles/audio: fix memleak of bt_bap src/shared: fix memleak src/shared: move null checks before dereferencing isotest: remove repeating conditions profiles/audio: fix io_unlink args order src/plugin: fix args order btio/btio.c | 2 +- obexd/client/transfer.c | 2 +- profiles/audio/a2dp.c | 45 +++++++++++++++++++++++++++++--------- profiles/audio/avrcp.c | 24 +++++++++++++++++--- profiles/audio/bap.c | 24 +++++++++++--------- profiles/audio/bass.c | 7 +++++- profiles/audio/transport.c | 2 +- src/plugin.c | 2 +- src/shared/bap.c | 40 ++++++++++++++++++++++++++++----- src/shared/gatt-db.c | 5 ++++- src/shared/vcp.c | 3 +++ tools/isotest.c | 8 ++++--- 12 files changed, 126 insertions(+), 38 deletions(-) -- 2.34.1