summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/pyexpat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 5c3cf25..6c40893 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -989,7 +989,7 @@ xmlparse_ParseFile(xmlparseobject *self, PyObject *args)
int bytes_read;
void *buf = XML_GetBuffer(self->itself, BUF_SIZE);
if (buf == NULL) {
- Py_DECREF(readmethod);
+ Py_XDECREF(readmethod);
return PyErr_NoMemory();
}