mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.10] bpo-45126: Fix ref. leak in sqlite3.Connection.__init__
(GH-28231). (GH-28298)
This commit is contained in:
parent
03c7b35840
commit
aa6dd54d43
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ pysqlite_connection_init(pysqlite_Connection *self, PyObject *args,
|
|||
}
|
||||
|
||||
if (PySys_Audit("sqlite3.connect", "O", database_obj) < 0) {
|
||||
Py_DECREF(database_obj);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue