diff options
author | marha <marha@users.sourceforge.net> | 2010-05-18 13:54:22 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-05-18 13:54:22 +0000 |
commit | 96bd0f520fd4a3a8c54e76638985389f60d936e0 (patch) | |
tree | 32643acb5ff4fc3b8a35c7842f94dea7d69c2c73 /libxcb/src/xcb_conn.c | |
parent | 4787c5a8db870b0cff2326bd750c4d96c7d84e51 (diff) | |
parent | a457b80612b4f37be47099e9a0f38c4fc2a42252 (diff) | |
download | vcxsrv-96bd0f520fd4a3a8c54e76638985389f60d936e0.tar.gz vcxsrv-96bd0f520fd4a3a8c54e76638985389f60d936e0.tar.bz2 vcxsrv-96bd0f520fd4a3a8c54e76638985389f60d936e0.zip |
svn merge "^/branches/released" .
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 ffd9519fb..1e58060ba 100644 --- a/libxcb/src/xcb_conn.c +++ b/libxcb/src/xcb_conn.c @@ -258,8 +258,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; |