Skip to content

bpo-10381: Cleanup dangling reference in get_timezone_utc_capi#5317

Merged
vstinner merged 1 commit into
python:masterfrom
pganssle:fix_dangling_ref
Jan 25, 2018
Merged

bpo-10381: Cleanup dangling reference in get_timezone_utc_capi#5317
vstinner merged 1 commit into
python:masterfrom
pganssle:fix_dangling_ref

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