-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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(...))
.