diff options
author | Antoine Pitrou <antoine@python.org> | 2021-05-14 19:37:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 19:37:20 (GMT) |
commit | c10c2ec7a0e06975e8010c56c9c3270f8ea322ec (patch) | |
tree | 7fa4d274bd1bd9d09bff60b50b59d25a2ac28b92 /Python/getopt.c | |
parent | 07797121cc290ede0b3d3cf02068f3d993cddd15 (diff) | |
download | cpython-c10c2ec7a0e06975e8010c56c9c3270f8ea322ec.zip cpython-c10c2ec7a0e06975e8010c56c9c3270f8ea322ec.tar.gz cpython-c10c2ec7a0e06975e8010c56c9c3270f8ea322ec.tar.bz2 |
bpo-37788: Fix reference leak when Thread is never joined (GH-26103)
When a Thread is not joined after it has stopped, its lock may remain in the _shutdown_locks set until interpreter shutdown. If many threads are created this way, the _shutdown_locks set could therefore grow endlessly. To avoid such a situation, purge expired locks each time a new one is added or removed.
Diffstat (limited to 'Python/getopt.c')
0 files changed, 0 insertions, 0 deletions