[3.10] bpo-45126: Fix ref. leak in sqlite3.Connection.__init__ (GH-28231). (GH-28298)

This commit is contained in:
Erlend Egeberg Aasland 2021-09-13 05:16:01 +02:00 committed by GitHub
parent 03c7b35840
commit aa6dd54d43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}