Kaydet (Commit) 224003ba authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Add missing DECREF.

üst 1f2dac57
......@@ -159,5 +159,9 @@ PyArena_Malloc(PyArena *arena, size_t size)
int
PyArena_AddPyObject(PyArena *arena, PyObject *obj)
{
return PyList_Append(arena->a_objects, obj) >= 0;
int r = PyList_Append(arena->a_objects, obj);
if (r >= 0) {
Py_DECREF(obj);
}
return r;
}
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