Skip to content

bpo-30567: Fix refleak in sys.getwindowsversion #1940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2017

Conversation

segevfiner
Copy link
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

@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