[New-bugs-announce] [issue30567] Leak in sys.getwindowsversion

Segev Finer report at bugs.python.org
Sun Jun 4 13:20:58 EDT 2017


New submission from Segev Finer:

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: https://github.com/python/cpython/pull/1927#issuecomment-306019512.

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

----------
components: Interpreter Core
messages: 295132
nosy: Segev Finer
priority: normal
severity: normal
status: open
title: Leak in sys.getwindowsversion
type: resource usage
versions: Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30567>
_______________________________________


More information about the New-bugs-announce mailing list