mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
PPM LoopbackTest: Fix resource leak
This commit is contained in:
@@ -170,6 +170,7 @@ int test_ppm_loopback(int argc, char *argv[])
|
||||
|
||||
} else {
|
||||
warnx("failed reading RC input data");
|
||||
(void)close(servo_fd);
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user