summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-08-04 09:16:53 +0930
committerPeter Hutterer <peter.hutterer@who-t.net>2008-08-04 09:17:37 +0930
commitd9097df01b01afaf946fa04fca8ae8ab7108ff21 (patch)
treea112488ceae8cf31519a4c016a257434e71f0cb5
parent5c074af5a9abba138023e3bc6954d1062f7c36dd (diff)
Actually close the fd on DEVICE_CLOSE (bug#16948)
Fixes file descriptor leak. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c
index dc8f78d..670cbb2 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -973,6 +973,7 @@ EvdevProc(DeviceIntPtr device, int what)
case DEVICE_CLOSE:
xf86Msg(X_INFO, "%s: Close\n", pInfo->name);
+ close(pInfo->fd);
break;
}