summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2005-01-14 21:15:17 +0000
committerdscho <dscho>2005-01-14 21:15:17 +0000
commita87e288f099d8aa08e1a205772ddb38782ca4be5 (patch)
treeb30a0ea98bf39810ea49abc62c8b80b7af72629d
parent6b9df7e09a68787ecd8a1fd0a51550833d94b7b7 (diff)
downloadlibtdevnc-a87e288f099d8aa08e1a205772ddb38782ca4be5.tar.gz
libtdevnc-a87e288f099d8aa08e1a205772ddb38782ca4be5.zip
close socket in ClientConnectionGone
-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