mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Flag a few other functions returning borrowed refs
This commit is contained in:
parent
4ecfd48671
commit
0ee641361b
|
@ -550,6 +550,7 @@ psyco_conn_autocommit_get(connectionObject *self)
|
|||
return ret;
|
||||
}
|
||||
|
||||
CPYCHECKER_RETURNS_BORROWED_REF
|
||||
static PyObject *
|
||||
_psyco_conn_autocommit_set_checks(connectionObject *self)
|
||||
{
|
||||
|
|
|
@ -85,6 +85,7 @@ struct cursorObject {
|
|||
|
||||
|
||||
/* C-callable functions in cursor_int.c and cursor_ext.c */
|
||||
CPYCHECKER_RETURNS_BORROWED_REF
|
||||
HIDDEN PyObject *curs_get_cast(cursorObject *self, PyObject *oid);
|
||||
HIDDEN void curs_reset(cursorObject *self);
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
* Return a borrowed reference.
|
||||
*/
|
||||
|
||||
CPYCHECKER_RETURNS_BORROWED_REF
|
||||
PyObject *
|
||||
curs_get_cast(cursorObject *self, PyObject *oid)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user