Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-10381: Cleanup dangling reference in get_timezone_utc_capi#5317

Merged
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
pganssle:fix_dangling_refpganssle/cpython:fix_dangling_refCopy head branch name to clipboard
Jan 25, 2018
Merged

bpo-10381: Cleanup dangling reference in get_timezone_utc_capi#5317
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
pganssle:fix_dangling_refpganssle/cpython:fix_dangling_refCopy head branch name to clipboard

Conversation

@pganssle

@pganssle pganssle commented Jan 25, 2018

Copy link
Copy Markdown
Member

Per @vstinner's comment, the C API test was erroneously not increasing the refcount on the UTC singleton.

This is a bugfix to unreleased changes, so news is unnecessary.

https://bugs.python.org/issue10381

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

"./python -m test -R 3:3 test_datetime" succeed: not only it doesn't crash anymore, but the _datetime module doesn't leak references ;-)

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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.