gh-128198: Add missing error checks for usages of PyIter_Next() (GH-128199)

This commit is contained in:
Yan Yanchii 2024-12-25 18:42:04 +01:00 committed by GitHub
parent 81636d3bbd
commit 5c814c83cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 0 deletions

View file

@ -264,6 +264,10 @@ framelocalsproxy_merge(PyObject* self, PyObject* other)
Py_DECREF(iter);
if (PyErr_Occurred()) {
return -1;
}
return 0;
}