mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 09:10:05 +01:00
test: fix memleak when using the test-uinput device
The libevdev-created uinput device was never freed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
84d2d5034c
commit
128cdcf105
1 changed files with 1 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ uinput_device_free(struct uinput_device *dev)
|
|||
if (dev->dev_fd != -1)
|
||||
close(dev->dev_fd);
|
||||
libevdev_free(dev->d);
|
||||
libevdev_uinput_destroy(dev->uidev);
|
||||
free(dev);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue