]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-1635741: sqlite3: Fix ref leak introduced by commit bf64d90 (GH-23972)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Mon, 28 Dec 2020 02:09:26 +0000 (03:09 +0100)
committerGitHub <noreply@github.com>
Mon, 28 Dec 2020 02:09:26 +0000 (03:09 +0100)
Modules/_sqlite/connection.c

index 46717acf7c7d97fa6e17aedb1453b4c8264d0ec6..5c7b4eeae6ae9fd72fe978bcdb96db702d416e52 100644 (file)
@@ -891,7 +891,6 @@ pysqlite_connection_create_aggregate_impl(pysqlite_Connection *self,
         return NULL;
     }
 
-    Py_INCREF(aggregate_class);
     rc = sqlite3_create_function_v2(self->db,
                                     name,
                                     n_arg,