summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-09-24 00:29:17 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-09-24 00:29:17 (GMT)
commit7e32cee1a68a489c4f2e916ac7003004b51887de (patch)
treefea5204ff4a295f70b2c76ed7dcd4c011033677c /Modules
parentb650194652a591503f97c15f8f4c0b08c05058c5 (diff)
downloadcpython-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.c1
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 */