Serhiy Storchaka added the comment:
PyTuple_SetItem() steals a reference to the added item. You should not call
Py_XDECREF() for it.
--
nosy: +serhiy.storchaka
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
New submission from Khalil :
I Have a set of callbacks from a C extension to a Python code and I noticed
that when I report a unicode string to the Python code, and use the Py_XDECREF
on it then whole application crashes with the SIGSEGV signal.This is a snippet
of the codes:
/**