tests/chamelium/audio: Fix resource leaks in audio tests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest2 patches 1 replyIn review
- v32 patches 2 repliesSuperseded
- v22 patches 6 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 2 patches | 4 replies | Superseded |
Changes in v4 from the cover letter
-Fix memory leak logic and update commit message (Sebastien)
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tests/chamelium/audio: Fix ALSA handle leak on skipped audio configtests/ | +3 | 0 replies | |
| 2/2 | tests/chamelium/audio: Fix resource leaks on assertion failuretests/ | +37 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Jeevan B | Sebastian Brzezinka |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/2] tests/chamelium/audio: Fix resource leaks in audio tests
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. Exit early on first failure to avoid testing remaining combinations unnecessarily.
v2:
-Refactor check condition (Sebastien)
v3:
-Update assert logic (Jeevan)
v4:
-Fix memory leak logic and update commit message (Sebastien)
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 | 60 ++++++++++++++++++--------- 1 file changed, 40 insertions(+), 20 deletions(-)
Signature · 1 line
2.48.1