Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a5453442 authored by Kevin Rocard's avatar Kevin Rocard
Browse files

HAL sndmonitor: Improve cleanup on error and deinit



Some resources were still leaked during sndmonitor deinit. That made
tests failed when the hal process had reach its 256 max fd open during
tests.
All file descriptor open during init should now be close during deinit.

Some memory is still leaked but as deinit of the hal is only used for
testing, it is not very important.

Test: vts-tradefed run vts --module VtsHalAudioV2_0Target
Test: call/play music/record/video...
Bug: 36311550
Change-Id: Id681a3d2dfac1692db168691ea33ef2b7d14ab2c
Signed-off-by: default avatarKevin Rocard <krocard@google.com>
parent b500b90b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment