commit | d6238a76c655e0feb13478505220dc9049f1682f | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Sep 24 02:49:58 2017 +0300 |
committer | GitHub <noreply@github.com> | Sun Sep 24 02:49:58 2017 +0300 |
tree | 009a07cd82ba5e226e801e65f8a96b827ea2aec4 | |
parent | cd99e79dc74c9d9dea83a5551d657c334b2cc6c9 [diff] [blame] |
bpo-25359: Add missed "goto error" after setting an exception. (#3712)
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 @@ else { PyErr_SetString(PyExc_OSError, "could not determine default encoding"); + goto error; } /* Check we have been asked for a real text encoding */