From f9cec90912017b44823ce233dd1873f72905a2e4 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 23 Jan 2019 15:37:25 +0000 Subject: [PATCH] Further annotation to run cpychecker with higher --maxtrans --- psycopg/pqpath.c | 3 +++ psycopg/typecast_array.c | 1 + 2 files changed, 4 insertions(+) diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c index 01ded5a8..30acf920 100644 --- a/psycopg/pqpath.c +++ b/psycopg/pqpath.c @@ -632,6 +632,7 @@ pq_reset(connectionObject *conn) * The result is a new string allocated with malloc. */ +IGNORE_REFCOUNT /* segfault on higher --maxtrans */ char * pq_get_guc_locked( connectionObject *conn, const char *param, @@ -1144,6 +1145,7 @@ exit: return rv; } +IGNORE_REFCOUNT /* davidmalcolm/gcc-python-plugin#109 -- can't fix with TO_STATE */ static PyObject * _make_column(connectionObject *conn, PGresult *pgres, int i) { @@ -1315,6 +1317,7 @@ _read_rowcount(cursorObject *curs) } } +IGNORE_REFCOUNT /* segfault on higher --maxtrans */ static int _pq_copy_in_v3(cursorObject *curs) { diff --git a/psycopg/typecast_array.c b/psycopg/typecast_array.c index d4a7650e..fa5d3ad3 100644 --- a/psycopg/typecast_array.c +++ b/psycopg/typecast_array.c @@ -166,6 +166,7 @@ typecast_array_tokenize(const char *str, Py_ssize_t strlength, return res; } +IGNORE_REFCOUNT /* davidmalcolm/gcc-python-plugin#109 -- can't fix with TO_STATE */ RAISES_NEG static int typecast_array_scan(const char *str, Py_ssize_t strlength, PyObject *curs, PyObject *base, PyObject *array)