mirror of https://github.com/python/cpython.git
_PyObject_LookupSpecial returns a new reference
This commit is contained in:
parent
67783b1f71
commit
d5adb5d73d
|
@ -836,6 +836,7 @@ PyObject_Format(PyObject* obj, PyObject *format_spec)
|
|||
}
|
||||
/* And call it. */
|
||||
result = PyObject_CallFunctionObjArgs(method, format_spec, NULL);
|
||||
Py_DECREF(method);
|
||||
}
|
||||
|
||||
if (result == NULL)
|
||||
|
|
Loading…
Reference in New Issue