dmonitoringmodeld: fix memory leak (#1403)

pull/1405/head
Dean Lee 5 years ago committed by GitHub
parent 25ab2521ab
commit ce4528c392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      selfdrive/modeld/dmonitoringmodeld.cc

@ -70,6 +70,7 @@ int main(int argc, char **argv) {
dmonitoringmodel.is_rhd = event.getDMonitoringState().getIsRHD();
dmonitoringmodel.is_rhd_checked = event.getDMonitoringState().getRhdChecked();
delete msg;
}
chk_counter = 0;
}

Loading…
Cancel
Save