From db5b2f843df214210dd1610e3c952c3019abae0c Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 5 Jul 2005 21:52:24 +0000 Subject: [PATCH] fix leak --- relay/tpool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/relay/tpool.cpp b/relay/tpool.cpp index b05b904b6..56a08cd42 100644 --- a/relay/tpool.cpp +++ b/relay/tpool.cpp @@ -281,6 +281,7 @@ XWThreadPool::real_listener() if ( !RemoveSocket( socket ) ) { /* no further processing if it's been removed while we've been sleeping in poll */ + --nEvents; continue; } @@ -302,6 +303,7 @@ XWThreadPool::real_listener() considerFireTimer(); free( fds ); + free( log ); } return NULL; } /* real_listener */