[issue23689] Memory leak in Modules/sre_lib.h

Evgeny Kapun report at bugs.python.org
Wed Mar 18 10:02:36 CET 2015


Evgeny Kapun added the comment:

This patch doesn't fix the issue. The problem is that the list starting with state->repeat doesn't necessarily contains all repeat contexts that are allocated. Indeed, here [1] and here [2] repeat contexts are temporarily removed from the list. If the match procedure terminates abruptly, they are not added back.

[1] https://hg.python.org/cpython/file/c89f7c34e356/Modules/sre_lib.h#l963
[2] https://hg.python.org/cpython/file/c89f7c34e356/Modules/sre_lib.h#l1002

----------

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


More information about the Python-bugs-list mailing list