mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
[3.10] bpo-45126: Fix ref. leak in sqlite3.Connection.__init__
(GH-28231). (GH-28298)
(cherry picked from commit aa6dd54d43
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
parent
1b02e29fb2
commit
5d28bb699a
1 changed files with 1 additions and 0 deletions
|
@ -97,6 +97,7 @@ int pysqlite_connection_init(pysqlite_Connection* self, PyObject* args, PyObject
|
|||
}
|
||||
|
||||
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