mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
PPM LoopbackTest: Fix resource leak
This commit is contained in:
parent
3d31914eb5
commit
a905babe95
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user