Skip to content

Commit

Permalink
Patch for issue #22818 (#23170)
Browse files Browse the repository at this point in the history
When calling "differential_drive stop" a missing return statement was causing a segmentation fault due to access to already freed memory.
  • Loading branch information
matteodelseppia authored Jun 3, 2024
1 parent c22f725 commit de5087a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/differential_drive/DifferentialDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void DifferentialDrive::Run()
if (should_exit()) {
ScheduleClear();
exit_and_cleanup();
return;
}

hrt_abstime now = hrt_absolute_time();
Expand Down

0 comments on commit de5087a

Please sign in to comment.