_PyObject_LookupSpecial returns a new reference

This commit is contained in:
Benjamin Peterson 2010-06-05 02:07:01 +00:00
parent 67783b1f71
commit d5adb5d73d

View file

@ -836,6 +836,7 @@ done1:
} }
/* And call it. */ /* And call it. */
result = PyObject_CallFunctionObjArgs(method, format_spec, NULL); result = PyObject_CallFunctionObjArgs(method, format_spec, NULL);
Py_DECREF(method);
} }
if (result == NULL) if (result == NULL)