summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Munton <simon@munton.demon.co.uk>2008-06-21 10:19:07 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-06-22 16:25:48 +0930
commit43768d59da2c519dde5a8efaf0ff2b12b6c47fcc (patch)
tree9716b2a39c2e12d998c758b13f7ab38664c4fb17
parent9c524f6963645bf42bbd41d4189d6319020a133d (diff)
Close file descriptor if EvdevProbe fails.
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au> (cherry picked from commit 373e13ae353d1e0022f8821adc528ebc5411d47d)
-rw-r--r--src/evdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c
index fa0545f..f029e8b 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1053,6 +1053,7 @@ EvdevPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
if (EvdevProbe(pInfo)) {
EvdevMBEmuFinalize(pInfo);
+ close(pInfo->fd);
xf86DeleteInput(pInfo, 0);
return NULL;
}