mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +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:
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user