Kaydet (Commit) e67d8e51 authored tarafından Fredrik Lundh's avatar Fredrik Lundh

oops. accidentally reintroduced a memory leak. put the bugfix back.

üst 33accc1f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment