summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2011-02-04 20:24:02 (GMT)
committerBrett Cannon <bcannon@gmail.com>2011-02-04 20:24:02 (GMT)
commite144507b0983399fb3dbcf6535cfbead22a6c5e4 (patch)
tree5fea96057e5cda3c96eb438f5c7d4b0e99c6b3c2 /Modules
parenteefb97cb579f8822868ce98ace820da5788e9ff7 (diff)
downloadcpython-e144507b0983399fb3dbcf6535cfbead22a6c5e4.zip
cpython-e144507b0983399fb3dbcf6535cfbead22a6c5e4.tar.gz
cpython-e144507b0983399fb3dbcf6535cfbead22a6c5e4.tar.bz2
There was a possibility that the initialization of _sqlite, when it failed,
would lead to a decref of a NULL. Fixes issue #11110.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index 3292dae..cbc3b8e 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -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;
}