From 33e5dd8466eaea91b3d2483180c3cb43e447ba23 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 4 May 2010 00:48:11 +0000 Subject: Fix a Py_DECREF to a Py_XDECREF. Found using Clang's static analyzer. --- Modules/pyexpat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index d428c66..3b4ccfd 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; } } -- cgit v0.12