mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +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()) {
|
if (should_exit()) {
|
||||||
ScheduleClear();
|
ScheduleClear();
|
||||||
exit_and_cleanup();
|
exit_and_cleanup();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
hrt_abstime now = hrt_absolute_time();
|
hrt_abstime now = hrt_absolute_time();
|
||||||
|
|||||||
Reference in New Issue
Block a user