Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e1ef1 commit 85a12a8Copy full SHA for 85a12a8
1 file changed
Modules/_sqlite/cursor.c
@@ -871,10 +871,15 @@ PyObject* pysqlite_cursor_iternext(pysqlite_Cursor *self)
871
}
872
873
next_row_tuple = self->next_row;
874
+ assert(next_row_tuple != NULL);
875
self->next_row = NULL;
876
877
if (self->row_factory != Py_None) {
878
next_row = PyObject_CallFunction(self->row_factory, "OO", self, next_row_tuple);
879
+ if (next_row == NULL) {
880
+ self->next_row = next_row_tuple;
881
+ return NULL;
882
+ }
883
Py_DECREF(next_row_tuple);
884
} else {
885
next_row = next_row_tuple;
0 commit comments