From 1e0077a2b41794fc8f3a3349b6baaea36e72e540 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 11 Feb 2020 17:17:15 -0800 Subject: [PATCH] Fix curs references --- psycopg/connection_type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/connection_type.c b/psycopg/connection_type.c index fa5c4c8e..5ba0349c 100644 --- a/psycopg/connection_type.c +++ b/psycopg/connection_type.c @@ -127,7 +127,7 @@ psyco_conn_cursor(connectionObject *self, PyObject *args, PyObject *kwargs) Dprintf("psyco_conn_cursor: new cursor at %p: refcnt = " FORMAT_CODE_PY_SSIZE_T, - obj, Py_REFCNT(obj) + curs, Py_REFCNT(curs) ); /* pass ownership from curs to rv */