We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a0791b commit bdd7646Copy full SHA for bdd7646
1 file changed
Objects/abstract.c
@@ -836,6 +836,7 @@ PyObject_Format(PyObject* obj, PyObject *format_spec)
836
}
837
/* And call it. */
838
result = PyObject_CallFunctionObjArgs(method, format_spec, NULL);
839
+ Py_DECREF(method);
840
841
842
if (result == NULL)
0 commit comments