diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-10 22:41:43 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-10 22:43:37 +0930 |
commit | b0f6987ee6b133e28f3af18da62cfb5ca79fbe07 (patch) | |
tree | 0c62ed04a79cf1f629124696e07614d95ace7cf0 | |
parent | fec73e1418a4da1b64496faca27b06fef0aa5206 (diff) |
Plug a memory leak, we allocated pEvdev twice, dropping the first memory area.
-rw-r--r-- | src/evdev.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/evdev.c b/src/evdev.c index bd01316..2f093c4 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -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; |