diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-11-18 09:53:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-18 09:53:45 (GMT) |
commit | 7538e7f5696408fa0aa02fce8a413a7dfac76a04 (patch) | |
tree | 80987d19e109f6f6f544972cfdfd415b3248372b /Misc | |
parent | 3938fd60c0c88891b213097380aeea91a45bcd77 (diff) | |
download | cpython-7538e7f5696408fa0aa02fce8a413a7dfac76a04.zip cpython-7538e7f5696408fa0aa02fce8a413a7dfac76a04.tar.gz cpython-7538e7f5696408fa0aa02fce8a413a7dfac76a04.tar.bz2 |
gh-67877: Fix memory leaks in terminated RE matching (GH-126840)
If SRE(match) function terminates abruptly, either because of a signal
or because memory allocation fails, allocated SRE_REPEAT blocks might
be never released.
Co-authored-by: <wjssz@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-11-14-22-25-49.gh-issue-67877.G9hw0w.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-11-14-22-25-49.gh-issue-67877.G9hw0w.rst b/Misc/NEWS.d/next/Library/2024-11-14-22-25-49.gh-issue-67877.G9hw0w.rst new file mode 100644 index 0000000..021b4ae --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-11-14-22-25-49.gh-issue-67877.G9hw0w.rst @@ -0,0 +1,2 @@ +Fix memory leaks when :mod:`regular expression <re>` matching terminates +abruptly, either because of a signal or because memory allocation fails. |