bpo-40645: Fix reference leak in the _hashopenssl extension#26072
bpo-40645: Fix reference leak in the _hashopenssl extension#26072miss-islington merged 1 commit into
Conversation
The PyModule_AddObjectRef function doesn't steal a reference, so an extra Py_DECREF is needed.
|
Thank you! |
Sorry, something went wrong.
|
There's also three leaks in the preceding for-loop: |
Sorry, something went wrong.
|
Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
|
Sorry @encukou, I had trouble checking out the |
Sorry, something went wrong.
|
Does this still need backport to 3.10? |
Sorry, something went wrong.
I believe so, yes. cc @pablogsal. |
Sorry, something went wrong.
This indeed need to be backported |
Sorry, something went wrong.
|
I can create a backport of this together with a backport of #26079, @pablogsal. Let me know if that's ok with you, @encukou. |
Sorry, something went wrong.
|
It is. Thank you! |
Sorry, something went wrong.
|
Oh, I already did this in #26082 :) Backport is done; no further actions needed. |
Sorry, something went wrong.
The
PyModule_AddObjectReffunction doesn't steal a reference, so an extraPy_DECREFis needed.https://bugs.python.org/issue40645
Automerge-Triggered-By: GH:tiran