[Python-checkins] bpo-1635741: sqlite3: Fix ref leak introduced by commit bf64d90 (GH-23972)

vstinner webhook-mailer at python.org
Sun Dec 27 21:09:42 EST 2020


https://github.com/python/cpython/commit/897387d2c8a956e74770c6bdd0447dfec61e8e27
commit: 897387d2c8a956e74770c6bdd0447dfec61e8e27
branch: master
author: Erlend Egeberg Aasland <erlend.aasland at innova.no>
committer: vstinner <vstinner at python.org>
date: 2020-12-28T03:09:26+01:00
summary:

bpo-1635741: sqlite3: Fix ref leak introduced by commit bf64d90 (GH-23972)

files:
M Modules/_sqlite/connection.c

diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 46717acf7c7d9..5c7b4eeae6ae9 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -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,



More information about the Python-checkins mailing list