diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-09-24 00:29:17 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-09-24 00:29:17 (GMT) |
commit | 7e32cee1a68a489c4f2e916ac7003004b51887de (patch) | |
tree | fea5204ff4a295f70b2c76ed7dcd4c011033677c /Modules | |
parent | b650194652a591503f97c15f8f4c0b08c05058c5 (diff) | |
download | cpython-7e32cee1a68a489c4f2e916ac7003004b51887de.zip cpython-7e32cee1a68a489c4f2e916ac7003004b51887de.tar.gz cpython-7e32cee1a68a489c4f2e916ac7003004b51887de.tar.bz2 |
[3.6] bpo-25359: Add missed "goto error" after setting an exception. (GH-3712) (#3714)
(cherry picked from commit d6238a76c655e0feb13478505220dc9049f1682f)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_io/textio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 588c697..4638b47 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -943,6 +943,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer, else { PyErr_SetString(PyExc_IOError, "could not determine default encoding"); + goto error; } /* Check we have been asked for a real text encoding */ |