[PATCH v1 0/2] tests/chamelium/audio: Fix resource leaks in audio tests

Mohammed Bilal
2026-03-04T10:08:43Z

This series fixes resource leaks in Chamelium audio tests.

It resolves a handle leak in the audio test loop when the audio
configuration check fails and the loop continues without cleanup.

It also ensures proper cleanup when assertion failures occur after
resources are acquired by routing error paths through a common
cleanup sequence.

Mohammed Bilal (2):
tests/chamelium/audio: Fix ALSA handle leak on skipped audio config
tests/chamelium/audio: Fix resource leaks on assertion failure

tests/chamelium/kms_chamelium_audio.c | 47 ++++++++++++++++++++-------
1 file changed, 36 insertions(+), 11 deletions(-)

--
2.48.1