[docs] [issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted
report at bugs.python.org
Mon Jul 23 12:26:46 EDT 2018
tzickel <icebreak at yahoo.com> added the comment:
I think I've found the code bug causing the leak:
There is a circular reference between the Pool object, and the self._worker_handler Thread object (and it's also saved in the frame locals for the thread object, which prevents it from being garbage collected).
Python tracker <report at bugs.python.org>
More information about the docs