[issue23689] Memory leak in Modules/sre_lib.h

Ma Lin report at bugs.python.org
Tue Feb 19 01:13:32 EST 2019


Ma Lin <malincns at 163.com> added the comment:

Try to allocate SRE_REPEAT on state's stack, the performance has not changed significantly.

It passes the other tests, except this one (test_stack_overflow):
https://github.com/python/cpython/blob/v3.8.0a1/Lib/test/test_re.py#L1225-L1230

I'll try to fix issue35859, issue9134 first.

----------
versions: +Python 3.8 -Python 2.7, Python 3.6, Python 3.7

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


More information about the Python-bugs-list mailing list