mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 05:53:12 -07:00
Fix a leak in Setsu
This commit is contained in:
parent
fd62af5b6c
commit
8bdf1a0003
1 changed files with 2 additions and 0 deletions
|
@ -278,6 +278,8 @@ bool get_dev_ids(const char *path, uint32_t *vendor_id, uint32_t *model_id)
|
|||
|
||||
*vendor_id = (uint32_t)libevdev_get_id_vendor(evdev);
|
||||
*model_id = (uint32_t)libevdev_get_id_product(evdev);
|
||||
libevdev_free(evdev);
|
||||
close(fd);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue