davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong refcount after PyTuple_SET_ITEM?

dvarrazzo opened this issue · comments

Checking the function https://github.com/psycopg/psycopg2/blob/b796ca0c0a03b75bf7c9212455683c1e3d520466/psycopg/cursor_type.c#L681-L726 the refcount checker reports a refcount error like the following:

image

PyTuple_SET_ITEM should have stolen a reference but it seems it didn't.