Patch for issue #22818 (#23170)

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:
Matteo Del Seppia 2024-06-03 21:10:28 +02:00 committed by GitHub
parent c22f725d85
commit de5087ae3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,7 @@ void DifferentialDrive::Run()
if (should_exit()) {
ScheduleClear();
exit_and_cleanup();
return;
}
hrt_abstime now = hrt_absolute_time();