diff --git a/src/systemcmds/tests/test_mount.c b/src/systemcmds/tests/test_mount.c index c5d6a6818a..2c041243b8 100644 --- a/src/systemcmds/tests/test_mount.c +++ b/src/systemcmds/tests/test_mount.c @@ -273,7 +273,7 @@ test_mount(int argc, char *argv[]) px4_close(fd); if (ret) { - px4_close(cmd_fd); + close(cmd_fd); PX4_ERR("UNLINKING FILE FAILED"); return 1; }