Skip to content

[3.13] gh-67877: Fix memory leaks in terminated RE matching (GH-126840) #126960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Nov 18, 2024

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
(cherry picked from commit 7538e7f)

…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>
(cherry picked from commit 7538e7f)
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) November 18, 2024 11:09
@serhiy-storchaka serhiy-storchaka merged commit 885386b into python:3.13 Nov 18, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant