commit | e144507b0983399fb3dbcf6535cfbead22a6c5e4 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Fri Feb 04 20:24:02 2011 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Fri Feb 04 20:24:02 2011 +0000 |
tree | 5fea96057e5cda3c96eb438f5c7d4b0e99c6b3c2 | |
parent | eefb97cb579f8822868ce98ace820da5788e9ff7 [diff] [blame] |
There was a possibility that the initialization of _sqlite, when it failed, would lead to a decref of a NULL. Fixes issue #11110.
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 @@ (pysqlite_statement_setup_types() < 0) || (pysqlite_prepare_protocol_setup_types() < 0) ) { - Py_DECREF(module); + Py_XDECREF(module); return NULL; }