[issue13250] ctypes: reference leak in POINTER code

Meador Inge report at bugs.python.org
Sun Oct 23 20:45:08 CEST 2011


New submission from Meador Inge <meadori at gmail.com>:

While implementing a patch for issue13096 I found a reference leak in 'ctypes'.  I couldn't find the cause immediately, but it can be 
reproduced by applying the attached patch and running:

[meadori at motherbrain cpython]$ ./python -m test -R : test_ctypes
[1/1] test_ctypes
beginning 9 repetitions
123456789
.........
test_ctypes leaked [51, 51, 51, 51] references, sum=204
1 test failed:
    test_ctypes
[174347 refs]

----------
components: ctypes
files: ctypes-refleak-repro.patch
keywords: patch
messages: 146242
nosy: amaury.forgeotdarc, belopolsky, meador.inge
priority: normal
severity: normal
stage: needs patch
status: open
title: ctypes: reference leak in POINTER code
type: resource usage
versions: Python 3.3
Added file: http://bugs.python.org/file23504/ctypes-refleak-repro.patch

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


More information about the Python-bugs-list mailing list