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

Commit 37270e38 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Add missing NULL pointers assignments

am: 65f5fbf2

Change-Id: I4c010baf150c5daf88de73efdc3041a30cf90ddd
parents 0655d126 65f5fbf2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4768,6 +4768,7 @@ static inline int btif_hl_close_select_thread(void)
        }
    }
    list_free(soc_queue);
    soc_queue = NULL;

    return (int)result;
}
+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ void btsock_rfc_cleanup(void) {
    if (rfc_slots[i].id)
      cleanup_rfc_slot(&rfc_slots[i]);
    list_free(rfc_slots[i].incoming_queue);
    rfc_slots[i].incoming_queue = NULL;
  }
  pthread_mutex_unlock(&slot_lock);
}
+2 −0
Original line number Diff line number Diff line
@@ -299,6 +299,7 @@ static future_t *shut_down() {
  fixed_queue_free(packet_queue, buffer_allocator->free);
  packet_queue = NULL;
  list_free(commands_pending_response);
  commands_pending_response = NULL;

  pthread_mutex_destroy(&commands_pending_response_lock);

@@ -802,6 +803,7 @@ void hci_layer_cleanup_interface() {
    interface.do_postload = NULL;

    data_dispatcher_free(interface.event_dispatcher);
    interface.event_dispatcher = NULL;

    interface.set_data_queue = NULL;
    interface.transmit_command = NULL;
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ static future_t *init() {

static future_t *clean_up() {
  config_free(config);
  config = NULL;
  return future_new_immediate(FUTURE_SUCCESS);
}

+1 −0
Original line number Diff line number Diff line
@@ -2285,6 +2285,7 @@ void gatt_cleanup_upon_disc(BD_ADDR bda, UINT16 reason, tBT_TRANSPORT transport)
        gatt_free_pending_ind(p_tcb);
        gatt_free_pending_enc_queue(p_tcb);
        fixed_queue_free(p_tcb->sr_cmd.multi_rsp_q, NULL);
        p_tcb->sr_cmd.multi_rsp_q = NULL;

        for (i = 0; i < GATT_MAX_APPS; i ++)
        {
Loading