gh-86493: Fix possible leaks in modules initialization: _curses_panel, _decimal, posix, xxsubtype#106767
Conversation
…_panel, _decimal, posix, xxsubtype
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
|
Sorry @serhiy-storchaka, I had trouble checking out the |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Sorry @serhiy-storchaka, I had trouble checking out the |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…_curses_panel, _decimal, posix, xxsubtype (pythonGH-106767). (cherry picked from commit 7454923) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-106849 is a backport of this pull request to the 3.12 branch. |
…ation: _curses_panel, _decimal, posix, xxsubtype (pythonGH-106767) (pythonGH-106849) (cherry picked from commit 7454923). (cherry picked from commit 970cb8e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
It's so hard to get PyInit code right :-( Thanks for the fix. |
Use
PyModule_AddObjectRef(...)instead ofPyModule_AddObject(..., Py_NewRef(...)).