]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Clear the loop variable in addition to the callback list.
authorBen Darnell <ben@bendarnell.com>
Sun, 7 Jul 2013 16:13:52 +0000 (12:13 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 7 Jul 2013 16:13:52 +0000 (12:13 -0400)
Closes #844.

tornado/ioloop.py

index 49e37eb9516f2ec16c44167889925cfb71de4296..fe7e276d5f2999c76fd53a995b11430cb7ddfd20 100644 (file)
@@ -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()