bpo-36333: Fix leak in _PyRuntimeState_Fini#12400
Conversation
vstinner
left a comment
There was a problem hiding this comment.
LGTM, but I would prefer that @ericsnowcurrently review it since he added _PyRuntime.xidregistry (and its mutex).
|
Python 3.7 is not affected: it doesn't have _PyRuntime.xidregistry. |
ericsnowcurrently
left a comment
There was a problem hiding this comment.
LGTM
Thanks for working on this!
|
FWIW, |
@matrixise: Can you try to free _PyRuntime.ceval.pending.lock in _PyEval_FiniThreads()? |
|
@ericsnowcurrently I will check in an other PR. Thanks for the review |
|
Ok i will do it |
|
I merged this PR, thanks @matrixise. Oh, there are now too many leaks... I merged https://bugs.python.org/issue36356 PR and I wrote PR #12432 to free the pending lock, to have a better view of remaining leaks. |
https://bugs.python.org/issue36333