Commit 61630ae1 authored by Christophe Blaess's avatar Christophe Blaess

[FIX] Correctly close output_request.fd.

parent bbde7780
......@@ -62,6 +62,7 @@ int main(int argc, char *argv[])
ioctl(output_request.fd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, &output_values);
}
perror(argv[1]);
close(output_request.fd);
close(output_fd);
return EXIT_FAILURE;
}
......
......@@ -99,6 +99,7 @@ int main(int argc, char *argv[])
}
}
close(input_fd);
close(output_request.fd);
close(output_fd);
return EXIT_FAILURE;
}
......
......@@ -61,6 +61,7 @@ int main(int argc, char *argv[])
usleep(500000);
}
perror(argv[1]);
close(output_request.fd);
close(output_fd);
return EXIT_FAILURE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment