From: Brett Cannon Date: Tue, 4 May 2010 00:48:11 +0000 (+0000) Subject: Fix a Py_DECREF to a Py_XDECREF. X-Git-Tag: v2.7b2~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33e5dd8466eaea91b3d2483180c3cb43e447ba23;p=python Fix a Py_DECREF to a Py_XDECREF. Found using Clang's static analyzer. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index d428c66e39..3b4ccfd069 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -993,7 +993,7 @@ xmlparse_ParseFile(xmlparseobject *self, PyObject *f) else { bytes_read = readinst(buf, BUF_SIZE, readmethod); if (bytes_read < 0) { - Py_DECREF(readmethod); + Py_XDECREF(readmethod); return NULL; } }