From b059b9ad8562df90251419685edeada96ae6560c Mon Sep 17 00:00:00 2001 From: mengskysama Date: Mon, 26 Oct 2015 11:05:38 +0800 Subject: [PATCH] memory leak --- shadowsocks/udprelay.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shadowsocks/udprelay.py b/shadowsocks/udprelay.py index d3696d9..b4fcae3 100644 --- a/shadowsocks/udprelay.py +++ b/shadowsocks/udprelay.py @@ -1293,6 +1293,7 @@ class UDPRelay(object): logging.info('closed UDP port %d', self._listen_port) before_sweep_size = len(self._sockets) self._cache.sweep() + self._dns_cache.sweep() if before_sweep_size != len(self._sockets): logging.debug('UDP port %5d sockets %d' % (self._listen_port, len(self._sockets))) self._client_fd_to_server_addr.sweep()