Kaydet (Commit) 33e5dd84 authored tarafından Brett Cannon's avatar Brett Cannon

Fix a Py_DECREF to a Py_XDECREF.

Found using Clang's static analyzer.
üst 87ab6ad4
...@@ -993,7 +993,7 @@ xmlparse_ParseFile(xmlparseobject *self, PyObject *f) ...@@ -993,7 +993,7 @@ xmlparse_ParseFile(xmlparseobject *self, PyObject *f)
else { else {
bytes_read = readinst(buf, BUF_SIZE, readmethod); bytes_read = readinst(buf, BUF_SIZE, readmethod);
if (bytes_read < 0) { if (bytes_read < 0) {
Py_DECREF(readmethod); Py_XDECREF(readmethod);
return NULL; 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