From d6238a76c655e0feb13478505220dc9049f1682f Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 24 Sep 2017 02:49:58 +0300 Subject: bpo-25359: Add missed "goto error" after setting an exception. (#3712) --- Modules/_io/textio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 9b7334d..5239e85 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -941,6 +941,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer, else { PyErr_SetString(PyExc_OSError, "could not determine default encoding"); + goto error; } /* Check we have been asked for a real text encoding */ -- cgit v0.12