[Python-checkins] r80741 - python/trunk/Modules/pyexpat.c

brett.cannon python-checkins at python.org
Tue May 4 02:48:11 CEST 2010


Author: brett.cannon
Date: Tue May  4 02:48:11 2010
New Revision: 80741

Log:
Fix a Py_DECREF to a Py_XDECREF.

Found using Clang's static analyzer.


Modified:
   python/trunk/Modules/pyexpat.c

Modified: python/trunk/Modules/pyexpat.c
==============================================================================
--- python/trunk/Modules/pyexpat.c	(original)
+++ python/trunk/Modules/pyexpat.c	Tue May  4 02:48:11 2010
@@ -993,7 +993,7 @@
         else {
             bytes_read = readinst(buf, BUF_SIZE, readmethod);
             if (bytes_read < 0) {
-                Py_DECREF(readmethod);
+                Py_XDECREF(readmethod);
                 return NULL;
             }
         }


More information about the Python-checkins mailing list