Kaydet (Commit) b80b3786 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #19437: Fix parse_save_field() of the csv module, handle PyList_Append()

failure
üst 1eadd6a1
......@@ -546,7 +546,10 @@ parse_save_field(ReaderObj *self)
return -1;
field = tmp;
}
PyList_Append(self->fields, field);
if (PyList_Append(self->fields, field) < 0) {
Py_DECREF(field);
return -1;
}
Py_DECREF(field);
return 0;
}
......
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