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

Commit 42513c9e authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Fix a call to osi_freebuf_and_reset()

am: 90b41f15

* commit '90b41f15':
  Fix a call to osi_freebuf_and_reset()
parents b83d106f 90b41f15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -276,7 +276,7 @@ void bta_sys_hw_btm_cback( tBTM_DEV_STATUS status )
        else
        {
            /* BTM_DEV_STATUS_CMD_TOUT is ignored for now. */
            osi_freebuf_and_reset((void **)sys_event);
            osi_freebuf_and_reset((void **)&sys_event);
        }

        if (sys_event)
+1 −1
Original line number Diff line number Diff line
@@ -374,7 +374,7 @@ static void btapp_gattc_free_req_data(UINT16 event, tBTA_GATTC *p_data)
                    (p_data->read.p_value->unformat.len > 0)) {
                    osi_freebuf_and_reset((void **)&p_data->read.p_value->unformat.p_value);
                }
                osi_freebuf_and_reset((void **)p_data->read.p_value);
                osi_freebuf_and_reset((void **)&p_data->read.p_value);
            }
            break;