]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91404: Revert "bpo-23689: re module, fix memory leak when a match is terminated...
authorGregory P. Smith <greg@krypto.org>
Fri, 17 Jun 2022 08:19:44 +0000 (01:19 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jun 2022 08:19:44 +0000 (01:19 -0700)
commit4beee0c7b0c2cc78a893dde88fd8e34099dcf877
treee3fa8fb0d8260f7c3d16d795c29580386868a5a6
parent538f28921f67e36617272faa662375d305d9284c
gh-91404: Revert "bpo-23689: re module, fix memory leak when a match is terminated by a signal or allocation failure (GH-32283) (#93882)

Revert "bpo-23689: re module, fix memory leak when a match is terminated by a signal or memory allocation failure (GH-32283)"

This reverts commit 6e3eee5c11b539e9aab39cff783acf57838c355a.

Manual fixups to increase the MAGIC number and to handle conflicts with
a couple of changes that landed after that.

Thanks for reviews by Ma Lin and Serhiy Storchaka.
Lib/re/_compiler.py
Lib/re/_constants.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2022-06-15-21-35-11.gh-issue-91404.39TZzW.rst [new file with mode: 0644]
Modules/_sre/clinic/sre.c.h
Modules/_sre/sre.c
Modules/_sre/sre.h
Modules/_sre/sre_constants.h
Modules/_sre/sre_lib.h