aboutsummaryrefslogtreecommitdiff
path: root/libxcb/src/xcb_conn.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-03-20 15:17:43 +0000
committermarha <marha@users.sourceforge.net>2010-03-20 15:17:43 +0000
commit4f736752bbdf3bbf1a6325af7ad470198aa5a82a (patch)
tree77c1f6fc206b313a68ffe6f956e1cbb089e7f9db /libxcb/src/xcb_conn.c
parent501c558c841fc5bc1a67e6dc8d33c8605276f504 (diff)
downloadvcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.tar.gz
vcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.tar.bz2
vcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.zip
libxcb git update
Diffstat (limited to 'libxcb/src/xcb_conn.c')
-rw-r--r--libxcb/src/xcb_conn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libxcb/src/xcb_conn.c b/libxcb/src/xcb_conn.c
index 251d62e01..ed2153d27 100644
--- a/libxcb/src/xcb_conn.c
+++ b/libxcb/src/xcb_conn.c
@@ -211,8 +211,10 @@ xcb_connection_t *xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info)
xcb_connection_t* c;
c = calloc(1, sizeof(xcb_connection_t));
- if(!c)
+ if(!c) {
+ close(fd);
return (xcb_connection_t *) &error_connection;
+ }
c->fd = fd;