diff Modules/_sqlite/module.c @ 67865:4355212fe2c4 3.1

Merged revisions 88337 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88337 | brett.cannon | 2011-02-04 12:24:02 -0800 (Fri, 04 Feb 2011) | 5 lines 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:30:30 +0000
parents f197407bdba2
children 3c9232a684ae
line wrap: on
line diff
--- a/Modules/_sqlite/module.c	Fri Feb 04 20:17:40 2011 +0000
+++ b/Modules/_sqlite/module.c	Fri Feb 04 20:30:30 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;
     }