mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
oops. accidentally reintroduced a memory leak. put the bugfix back.
This commit is contained in:
parent
33accc1f5c
commit
e67d8e514f
1 changed files with 4 additions and 3 deletions
|
@ -1704,10 +1704,11 @@ pattern_findall(PatternObject* self, PyObject* args)
|
|||
break;
|
||||
}
|
||||
|
||||
if (PyList_Append(list, item) < 0) {
|
||||
Py_DECREF(item);
|
||||
status = PyList_Append(list, item);
|
||||
Py_DECREF(item);
|
||||
|
||||
if (status < 0)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (state.ptr == state.start)
|
||||
state.start = (void*) ((char*) state.ptr + state.charsize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue