Fix a Py_DECREF to a Py_XDECREF.

Found using Clang's static analyzer.
This commit is contained in:
Brett Cannon 2010-05-04 00:48:11 +00:00
parent 87ab6ad4d6
commit 33e5dd8466

View file

@ -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;
}
}