mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
oops. accidentally reintroduced a memory leak. put the bugfix back.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user