mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
Fix a Py_DECREF to a Py_XDECREF.
Found using Clang's static analyzer.
This commit is contained in:
parent
87ab6ad4d6
commit
33e5dd8466
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue