Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit baced56

Browse files
committed
Fix a refleak in _sre
1 parent 1830601 commit baced56

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ Core and Builtins
5454
Library
5555
-------
5656

57+
- Fix a reference count leak in _sre.
58+
5759
- Issue #19262: Initial check in of the 'asyncio' package (a.k.a. Tulip,
5860
a.k.a. PEP 3156). There are no docs yet, and the PEP is slightly
5961
out of date with the code. This module will have *provisional* status

Modules/_sre.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,6 +2427,7 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
24272427
else
24282428
item = PyUnicode_Join(joiner, list);
24292429
Py_DECREF(joiner);
2430+
Py_DECREF(list);
24302431
if (!item)
24312432
return NULL;
24322433
}

0 commit comments

Comments
 (0)