mirror of
https://github.com/X11Libre/xserver.git
synced 2026-12-01 08:00:28 +00:00
dix: devices: fix missing free in AddInputDevice()
When dixCallDeviceAccessCallback() rejects, we need to really clean up. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
9fa3a27e1c
commit
2b82880694
1 changed files with 1 additions and 0 deletions
|
|
@ -304,6 +304,7 @@ AddInputDevice(ClientPtr client, DeviceProc deviceProc, Bool autoStart)
|
|||
*/
|
||||
if (XaceHookDeviceAccess(client, dev, DixCreateAccess)) {
|
||||
dixFreePrivates(dev->devPrivates, PRIVATE_DEVICE);
|
||||
free(dev->deviceGrab.sync.event);
|
||||
free(dev);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue