bpo-38858: Fix ref leak in pycore_interp_init() by vstinner · Pull Request #17512 · python/cpython · GitHub
Skip to content

bpo-38858: Fix ref leak in pycore_interp_init() - #17512

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:fix_sys_create
Dec 8, 2019
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:fix_sys_create

Conversation

@vstinner

@vstinner vstinner commented Dec 8, 2019

Copy link
Copy Markdown
Member

bpo-38858, bpo-38997: _PySys_Create() returns a strong reference to
the sys module: Py_DECREF() is needed when we are done with the
module.

https://bugs.python.org/issue38858

@vstinner

vstinner commented Dec 8, 2019

Copy link
Copy Markdown
Member Author

bpo-38858, bpo-38997: _PySys_Create() returns a strong reference to
the sys module: Py_DECREF() is needed when we are done with the
module.
@vstinner

vstinner commented Dec 8, 2019

Copy link
Copy Markdown
Member Author

@vstinner
vstinner merged commit 080ee5a into python:master Dec 8, 2019
@vstinner
vstinner deleted the fix_sys_create branch December 8, 2019 20:56
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
bpo-38858, bpo-38997: _PySys_Create() returns a strong reference to
the sys module: Py_DECREF() is needed when we are done with the
module.
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.

3 participants