From 0aba0aa40c0a8249d5b7f9488ee7cf9314a05554 Mon Sep 17 00:00:00 2001 From: mengskysama Date: Mon, 26 Oct 2015 09:45:02 +0800 Subject: [PATCH] fix memory leak! _dns_cache bommmm --- shadowsocks/udprelay.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shadowsocks/udprelay.py b/shadowsocks/udprelay.py index 96d1fbd..ab12c54 100644 --- a/shadowsocks/udprelay.py +++ b/shadowsocks/udprelay.py @@ -285,6 +285,7 @@ class UDPRelay(object): logging.info('closed UDP port %d', self._listen_port) self._cache.sweep() self._client_fd_to_server_addr.sweep() + self._dns_cache.sweep() def close(self, next_tick=False): logging.debug('UDP close')