]> granicus.if.org Git - python/commit
bpo-37788: Fix a reference leak if a thread is not joined (GH-15228)
authorVictor Stinner <vstinner@redhat.com>
Mon, 19 Aug 2019 22:37:17 +0000 (23:37 +0100)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2019 22:37:17 +0000 (23:37 +0100)
commitd3dcc92778807ae8f7ebe85178f36a29711cd478
tree9f416500ba67997ae72cda0594f5bcc62ac303b9
parentcf9360e524acafdce99a8a1e48947fd7da06f3d4
bpo-37788: Fix a reference leak if a thread is not joined (GH-15228)

Add threading.Thread.__del__() method to ensure that the thread state
lock is removed from the _shutdown_locks list when a thread
completes.
Lib/test/test_threading.py
Lib/threading.py
Misc/NEWS.d/next/Library/2019-08-12-17-21-10.bpo-37788.F0tR05.rst [new file with mode: 0644]