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

Commit 795b6b1b authored by Song Gao's avatar Song Gao Committed by Hansong Zhang
Browse files

HF_Client: Free the RFC if the handle doesn't match

Bug: 146086995
Test: manual
Change-Id: Iac3078fa2d10373f295fe9c6fd49ddc39f15eb98
parent a1ef3d46
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -127,6 +127,7 @@ static void bta_hf_client_mgmt_cback(uint32_t code, uint16_t port_handle) {
    } else {
      APPL_TRACE_ERROR("%s: PORT_SUCCESS, ignoring handle = %d", __func__,
                       port_handle);
      osi_free(p_buf);
      return;
    }
  } else if (client_cb != NULL &&