[WIP] bpo-23689: re module, fix memory leak when a match is terminated by a signal · Pull Request #32188 · python/cpython · GitHub

github.com

Tin mới

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

re: fix memory leak when a match is terminated by a signal

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

don't emit repeat_index for REPEAT_ONE, MIN_REPEAT_ONE, POSSESSIVE_RE…

print repeat_index in TRACE()

use PyMem_New instead of PyMem_RawCalloc

View reviewed changes

CompileData.diff.txt

simple_patch.diff.txt

This simpler patch is faster (2.80 sec) simple_patch.diff.txt

Reorganize the re module sources #91308

Memory leak in Modules/sre_lib.h #67877

⌂git
1/1