mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
_PyObject_LookupSpecial returns a new reference
This commit is contained in:
parent
67783b1f71
commit
d5adb5d73d
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue