diff --git a/test/litest.c b/test/litest.c index 2cc1a613..d857449f 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1240,6 +1240,7 @@ litest_delete_device(struct litest_device *d) libinput_path_remove_device(d->libinput_device); if (d->owns_context) libinput_unref(d->libinput); + close(libevdev_get_fd(d->evdev)); libevdev_free(d->evdev); libevdev_uinput_destroy(d->uinput); free(d->private);