Skip to content

Commit

Permalink
[3.11] bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and s…
Browse files Browse the repository at this point in the history
…egfaults (pythonGH-18640)

Co-authored-by: Oren Milman <orenmn@gmail.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>.
(cherry picked from commit 53eef27)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  • Loading branch information
kumaraditya303 and ZackerySpytz committed Nov 28, 2022
1 parent ce6949a commit 8b87eb3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/_io/textio.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ _io_IncrementalNewlineDecoder___init___impl(nldecoder_object *self,
else {
errors = Py_NewRef(errors);
}
Py_INCREF(self->errors);

Py_XSETREF(self->errors, errors);
Py_XSETREF(self->decoder, Py_NewRef(decoder));
Expand Down

0 comments on commit 8b87eb3

Please sign in to comment.