[issue3328] When PyObject_CallMethod fails, refcount is incorrect
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Jul 9 19:06:38 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
No, PyTuple_SET_ITEM() "steals" a reference to its argument, so that
ownership is transferred to the tuple.
The reference will be released when the tuple is disposed, with
Py_DECREF(arg).
What makes you think that there is a reference leak? Do you have a test
case?
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3328>
_______________________________________
More information about the Python-bugs-list
mailing list