diff --git a/tools/libinput-debug-tablet-pad.c b/tools/libinput-debug-tablet-pad.c index d14d9edb..528fbef7 100644 --- a/tools/libinput-debug-tablet-pad.c +++ b/tools/libinput-debug-tablet-pad.c @@ -262,7 +262,7 @@ handle_device_added(struct context *ctx, struct libinput_event *ev) if (fd == -1) return; if (libevdev_new_from_fd(fd, &ctx->evdev) != 0) { - close(fd); + xclose(&fd); return; } }