]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91404: Revert "bpo-23689: re module, fix memory leak when a match is terminated...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 17 Jun 2022 08:43:56 +0000 (01:43 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jun 2022 08:43:56 +0000 (01:43 -0700)
commit029835d9d4073d34d95bde9f969a6b0f969fda00
tree3675e1fae9fc9df5a16f61b40a8afc881e0d6993
parent5ee86d43067f46d8a99134bfaf01ebb98a71e295
gh-91404: Revert "bpo-23689: re module, fix memory leak when a match is terminated by a signal or allocation failure (GH-32283) (GH-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.
(cherry picked from commit 4beee0c7b0c2cc78a893dde88fd8e34099dcf877)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
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