diff options
author | marha <marha@users.sourceforge.net> | 2010-03-20 15:17:43 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-03-20 15:17:43 +0000 |
commit | 4f736752bbdf3bbf1a6325af7ad470198aa5a82a (patch) | |
tree | 77c1f6fc206b313a68ffe6f956e1cbb089e7f9db /libxcb/src/xcb_conn.c | |
parent | 501c558c841fc5bc1a67e6dc8d33c8605276f504 (diff) | |
download | vcxsrv-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.c | 4 |
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; |