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

This commit is contained in:
Fredrik Lundh 2000-08-27 21:32:46 +00:00
parent 33accc1f5c
commit e67d8e514f

View file

@ -1704,10 +1704,11 @@ pattern_findall(PatternObject* self, PyObject* args)
break; break;
} }
if (PyList_Append(list, item) < 0) { status = PyList_Append(list, item);
Py_DECREF(item); Py_DECREF(item);
if (status < 0)
goto error; goto error;
}
if (state.ptr == state.start) if (state.ptr == state.start)
state.start = (void*) ((char*) state.ptr + state.charsize); state.start = (void*) ((char*) state.ptr + state.charsize);