Commit d6238a76 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-25359: Add missed "goto error" after setting an exception. (#3712)

parent cd99e79d
...@@ -941,6 +941,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer, ...@@ -941,6 +941,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer,
else { else {
PyErr_SetString(PyExc_OSError, PyErr_SetString(PyExc_OSError,
"could not determine default encoding"); "could not determine default encoding");
goto error;
} }
/* Check we have been asked for a real text encoding */ /* Check we have been asked for a real text encoding */
......
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