Commit 33e5dd84 authored by Brett Cannon's avatar Brett Cannon

Fix a Py_DECREF to a Py_XDECREF.

Found using Clang's static analyzer.
parent 87ab6ad4
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment