From a87e288f099d8aa08e1a205772ddb38782ca4be5 Mon Sep 17 00:00:00 2001 From: dscho Date: Fri, 14 Jan 2005 21:15:17 +0000 Subject: close socket in ClientConnectionGone --- libvncserver/rfbserver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c index 0e6a4ce..84b5035 100644 --- a/libvncserver/rfbserver.c +++ b/libvncserver/rfbserver.c @@ -410,6 +410,9 @@ rfbClientConnectionGone(cl) if (cl->next) cl->next->prev = cl->prev; + if(cl->sock) + close(cl->sock); + #ifdef LIBVNCSERVER_HAVE_LIBZ FreeZrleData(cl); #endif -- cgit v1.2.1