Skip to content

Commit

Permalink
dmonitoringmodeld: fix memory leak (commaai#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee authored Apr 20, 2020
1 parent 25ab252 commit ce4528c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/modeld/dmonitoringmodeld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ce4528c

Please sign in to comment.