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

Commit 189e73f2 authored by Hui Peng's avatar Hui Peng
Browse files

Fix a regression in tSMP_CB::reset

Memeory (of the alarms) leak is introduced in
aosp/2853676

Bug: 323259735
Test: m com.android.btservices
FLAG: EXEMPT, simple fix to a regression caused by unflagged change
Change-Id: Iaba3bf2f9482caa9c1960b4707a772a8a5e5c628
parent 08ffdf81
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -942,7 +942,8 @@ void tSMP_CB::reset() {
  alarm_cancel(this->smp_rsp_timer_ent);
  alarm_cancel(this->delayed_auth_timer_ent);

  init(init_security_mode);
  *this = {};
  this->init_security_mode = init_security_mode;

  this->p_callback = p_callback;
  this->init_security_mode = init_security_mode;