mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
There was a possibility that the initialization of _sqlite, when it failed,
would lead to a decref of a NULL. Fixes issue #11110.
This commit is contained in:
parent
eefb97cb57
commit
e144507b09
2 changed files with 3 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
|
|||
(pysqlite_statement_setup_types() < 0) ||
|
||||
(pysqlite_prepare_protocol_setup_types() < 0)
|
||||
) {
|
||||
Py_DECREF(module);
|
||||
Py_XDECREF(module);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue