mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-128198: Add missing error checks for usages of PyIter_Next() (GH-128199)
This commit is contained in:
parent
81636d3bbd
commit
5c814c83cd
3 changed files with 21 additions and 0 deletions
|
@ -264,6 +264,10 @@ framelocalsproxy_merge(PyObject* self, PyObject* other)
|
|||
|
||||
Py_DECREF(iter);
|
||||
|
||||
if (PyErr_Occurred()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue