Skip to content

(master) xf86libinput: fix option-list leak on OOM in xf86libinput_create_subdevice() - #38

Open
metux wants to merge 1 commit into
masterfrom
pr/master-xf86libinput-fix-option-list-leak-on-oom-in-xf86libinput-create-subdevice-_2026-07-07_13-45-37
Open

(master) xf86libinput: fix option-list leak on OOM in xf86libinput_create_subdevice()#38
metux wants to merge 1 commit into
masterfrom
pr/master-xf86libinput-fix-option-list-leak-on-oom-in-xf86libinput-create-subdevice-_2026-07-07_13-45-37

Conversation

@metux

@metux metux commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

If the calloc() for 'hotplug' fails, the function returned without
freeing the InputOption chain (iopts) it had just built up from the
capability options a few lines above -- leaking that list and its
duplicated name/value strings.

Signed-off-by: Enrico Weigelt, metux IT consult info@metux.net

…evice()

If the calloc() for 'hotplug' fails, the function returned without
freeing the InputOption chain (iopts) it had just built up from the
capability options a few lines above -- leaking that list and its
duplicated name/value strings.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant