From 1ececbbf361a227fa6449f51904f97f37763b5a4 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 14 Dec 2020 23:41:00 +0100 Subject: simpletest: Close fd after closing device --- examples/simpletest/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/simpletest/main.c b/examples/simpletest/main.c index 0ec1c91..aeeace2 100644 --- a/examples/simpletest/main.c +++ b/examples/simpletest/main.c @@ -57,8 +57,8 @@ int main(int argc, char *argv[]) { return 1; } - close(fd); libseat_close_device(backend, device); + close(fd); libseat_close_seat(backend); return 0; } -- cgit v1.2.3