From: Ben Darnell Date: Sun, 7 Jul 2013 16:13:52 +0000 (-0400) Subject: Clear the loop variable in addition to the callback list. X-Git-Tag: v3.2.0b1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4851494a55c2cc225a9d441af56bf8a58316dc5b;p=thirdparty%2Ftornado.git Clear the loop variable in addition to the callback list. Closes #844. --- diff --git a/tornado/ioloop.py b/tornado/ioloop.py index 49e37eb95..fe7e276d5 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -607,7 +607,7 @@ class PollIOLoop(IOLoop): self._run_callback(callback) # Closures may be holding on to a lot of memory, so allow # them to be freed before we go into our poll wait. - del callbacks + callbacks = callback = None if self._timeouts: now = self.time()