diff Modules/_sqlite/module.c @ 67863:ce8db485e26e

There was a possibility that the initialization of _sqlite, when it failed, would lead to a decref of a NULL. Fixes issue #11110.
author Brett Cannon <bcannon@gmail.com>
date Fri, 04 Feb 2011 20:24:02 +0000
parents e9cd15d539e1
children 3c9232a684ae
line wrap: on
line diff
--- a/Modules/_sqlite/module.c	Fri Feb 04 20:11:11 2011 +0000
+++ b/Modules/_sqlite/module.c	Fri Feb 04 20:24:02 2011 +0000
@@ -329,7 +329,7 @@
         (pysqlite_statement_setup_types() < 0) ||
         (pysqlite_prepare_protocol_setup_types() < 0)
        ) {
-        Py_DECREF(module);
+        Py_XDECREF(module);
         return NULL;
     }