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 authored and GitHub committed 2024-06-03 21:10:28 +02:00
1 parent c22f725d85
commit de5087ae3e
1 file changed
+1
@@ -66,6 +66,7 @@ void DifferentialDrive::Run()
if (should_exit()) {
ScheduleClear();
exit_and_cleanup();
return;
}
hrt_abstime now = hrt_absolute_time();