mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-26 02:38:35 +00:00
Plug a memory leak, we allocated pEvdev twice, dropping the first memory area.
This commit is contained in:
@@ -1029,10 +1029,6 @@ EvdevPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
|
||||
pInfo->always_core_feedback = 0;
|
||||
pInfo->conf_idev = dev;
|
||||
|
||||
if (!(pEvdev = xcalloc(sizeof(*pEvdev), 1)))
|
||||
return pInfo;
|
||||
pInfo->private = pEvdev;
|
||||
|
||||
if (!(pEvdev = xcalloc(sizeof(EvdevRec), 1)))
|
||||
return pInfo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user