whoopsie...

This commit is contained in:
Denis 2023-12-09 15:46:24 +01:00
parent f387d21da9
commit 6bde2e4a8d
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -184,12 +184,10 @@ int dev_evdev_open(
}
if ((skip) || (open_sysfs_idx == -1)) {
free(path);
continue;
}
if (libevdev_new_from_fd(fd, out_evdev) != 0) {
free(path);
close(fd);
continue;
}
@ -197,7 +195,6 @@ int dev_evdev_open(
// try to open the device
if (!ev_matches(in_filters, *out_evdev)) {
libevdev_free(*out_evdev);
free(path);
close(fd);
continue;
}