From 8b87eb3858667a1cbc8ab049bd0994a0a4247959 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Mon, 28 Nov 2022 16:21:05 +0530 Subject: [PATCH] [3.11] bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and segfaults (GH-18640) Co-authored-by: Oren Milman Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>. (cherry picked from commit 53eef27133c1da395b3b4d7ce0ab1d5b743ffb41) Co-authored-by: Zackery Spytz --- Modules/_io/textio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 22bf142dd9deb4..6cb5a6861a158c 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -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));