Commit e144507b authored by Brett Cannon's avatar Brett Cannon

There was a possibility that the initialization of _sqlite, when it failed,

would lead to a decref of a NULL.

Fixes issue #11110.
parent eefb97cb
......@@ -15,6 +15,8 @@ Core and Builtins
Library
-------
- Issue #11110: Fix a potential decref of a NULL in sqlite3.
- Issue #8275: Fix passing of callback arguments with ctypes under Win64.
Patch by Stan Mihai.
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment