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

Commit 6aa0409c authored by Jigong Yin's avatar Jigong Yin
Browse files

Fix stack manager coverity issue - not free after bt on/off

[Root Cause]
When BT on, will do btif_dm_init(), which do save uid_set;
But when BT off, not destory uid_set.

[Solution]
Add btif_dm_cleanup to destory uid_set when BT off.

Bug: 301369984
Test: atest net_test_btif pass

Change-Id: Ide030e58e23a2802e9e2fbb50433c7376dc7dc61
parent 5e355ae4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -375,6 +375,8 @@ static void event_shut_down_stack(ProfileStopCallback stopProfiles) {

  do_in_main_thread(FROM_HERE, base::BindOnce(bta_dm_disable));

  btif_dm_cleanup();

  future_await(local_hack_future);
  local_hack_future = future_new();
  hack_future = local_hack_future;