mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 11:01:37 +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 {
|
} else {
|
||||||
warnx("failed reading RC input data");
|
warnx("failed reading RC input data");
|
||||||
|
(void)close(servo_fd);
|
||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user