Skip to content

Commit aa6dd54

Browse files
author
Erlend Egeberg Aasland
authored
[3.10] bpo-45126: Fix ref. leak in sqlite3.Connection.__init__ (GH-28231). (GH-28298)
1 parent 03c7b35 commit aa6dd54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/_sqlite/connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ pysqlite_connection_init(pysqlite_Connection *self, PyObject *args,
8787
}
8888

8989
if (PySys_Audit("sqlite3.connect", "O", database_obj) < 0) {
90+
Py_DECREF(database_obj);
9091
return -1;
9192
}
9293

0 commit comments

Comments
 (0)