summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvncserver/rfbserver.c3
1 files changed, 3 insertions, 0 deletions
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