Skip to content

tests/chamelium/audio: Fix resource leaks in audio tests

Mohammed Bilal igt-dev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 2 repliesSuperseded
  3. v22 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches4 repliesSuperseded

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 filesSizeRepliesApplied
1/2tests/chamelium/audio: Fix ALSA handle leak on skipped audio configtests/chamelium/kms_chamelium_audio.c+3 -10 replies
2/2tests/chamelium/audio: Fix resource leaks on assertion failuretests/chamelium/kms_chamelium_audio.c+37 -191 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJeevan BSebastian Brzezinka
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

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