Skip to content

_testmultiphase: Fix possible ref leak#22881

Merged
miss-islington merged 1 commit into
python:masterfrom
corona10:refcount-fix
Oct 22, 2020
Merged

_testmultiphase: Fix possible ref leak#22881
miss-islington merged 1 commit into
python:masterfrom
corona10:refcount-fix

Conversation

@corona10
Copy link
Copy Markdown
Member

@corona10 corona10 commented Oct 22, 2020

This is just test code, but sometimes external contributors reference the code snippets from test code.
PyModule_AddObject should be handled in the proper way.

https://docs.python.org/3/c-api/module.html#c.PyModule_AddObject

Automerge-Triggered-By: GH:encukou

Copy link
Copy Markdown
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@miss-islington miss-islington merged commit 8a9463f into python:master Oct 22, 2020
@corona10 corona10 deleted the refcount-fix branch October 22, 2020 09:53
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
This is just test code, but sometimes external contributors reference the code snippets from test code.
`PyModule_AddObject` should be handled in the proper way.

https://docs.python.org/3/c-api/module.html#c.PyModule_AddObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants