[New-bugs-announce] [issue25582] Fixed memory leaks in test_ctypes

Serhiy Storchaka report at bugs.python.org
Sat Nov 7 15:18:20 EST 2015


New submission from Serhiy Storchaka:

POINTER() saves its result in internal cache. test_pointer_type_name and test_pointer_type_str_name use large names and resulting types consume much memory. This can be one of the causes of tests failure on the AIX buildbot with very limited memory.

If run tests repeatedly, the cache grows and can consume all memory even on the machine with enough memory.

Proposed patch fixes leaks.

----------
components: Tests, ctypes
messages: 254295
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Fixed memory leaks in test_ctypes
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list