mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
When calling "differential_drive stop" a missing return statement was causing a segmentation fault due to access to already freed memory.
This commit is contained in:
committed by
GitHub
parent
c22f725d85
commit
de5087ae3e
@@ -66,6 +66,7 @@ void DifferentialDrive::Run()
|
||||
if (should_exit()) {
|
||||
ScheduleClear();
|
||||
exit_and_cleanup();
|
||||
return;
|
||||
}
|
||||
|
||||
hrt_abstime now = hrt_absolute_time();
|
||||
|
||||
Reference in New Issue
Block a user