mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-04 04:50:28 +01:00
ei-device: Don't leak fd when receiving the keymap
The ei_keymap dups the file descriptor, so lets close the one we received from the demarshaller. Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/334>
This commit is contained in:
parent
851f935fe1
commit
ee27dd5c92
1 changed files with 1 additions and 0 deletions
|
|
@ -725,6 +725,7 @@ handle_msg_keymap(struct ei_keyboard *keyboard, uint32_t keymap_type, uint32_t k
|
|||
struct ei_device *device = ei_keyboard_get_device(keyboard);
|
||||
|
||||
ei_device_set_keymap(device, keymap_type, keymap_fd, keymap_sz);
|
||||
xclose (keymap_fd);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue