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-30567: Fix refleak in sys.getwindowsversion#1940

Merged
serhiy-storchaka merged 1 commit into
python:masterpython/cpython:masterfrom
segevfiner:bpo-30567segevfiner/cpython:bpo-30567Copy head branch name to clipboard
Jun 4, 2017
Merged

bpo-30567: Fix refleak in sys.getwindowsversion#1940
serhiy-storchaka merged 1 commit into
python:masterpython/cpython:masterfrom
segevfiner:bpo-30567segevfiner/cpython:bpo-30567Copy head branch name to clipboard

Conversation

@segevfiner

Copy link
Copy Markdown
Contributor

There is a ref leak in sys.getwindowsversion due to using PyTuple_Pack and forgetting that it increments the ref count of passed in objects. Found here: #1927 (comment).

Clearly shows up in python -m test -R 3:2 test_sys

@eryksun

@mention-bot

Copy link
Copy Markdown

@segevfiner, thanks for your PR! By analyzing the history of the files in this pull request, we identified @loewis, @tiran and @serhiy-storchaka to be potential reviewers.

@serhiy-storchaka serhiy-storchaka added needs backport to 3.5 type-bug An unexpected behavior, bug, or error labels Jun 4, 2017
@serhiy-storchaka serhiy-storchaka merged commit 48fb766 into python:master Jun 4, 2017
serhiy-storchaka pushed a commit to serhiy-storchaka/cpython that referenced this pull request Jun 6, 2017
serhiy-storchaka pushed a commit to serhiy-storchaka/cpython that referenced this pull request Jun 6, 2017
serhiy-storchaka added a commit that referenced this pull request Jun 6, 2017
serhiy-storchaka added a commit that referenced this pull request Jun 6, 2017
@segevfiner segevfiner deleted the bpo-30567 branch June 6, 2017 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

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