diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-18 05:29:30 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-12-18 05:29:30 (GMT) |
commit | db83eb3170ebdf55bd1c1add94838a9aefa8c00b (patch) | |
tree | 7920aeced87b5649ef95344d093c2d6fb6cf5b68 /Python | |
parent | e7214a130b3fb1c4850a1e644b9e240087f6e982 (diff) | |
download | cpython-db83eb3170ebdf55bd1c1add94838a9aefa8c00b.zip cpython-db83eb3170ebdf55bd1c1add94838a9aefa8c00b.tar.gz cpython-db83eb3170ebdf55bd1c1add94838a9aefa8c00b.tar.bz2 |
Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.
Needs backport.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index a7f4fe7..30cb518 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1439,8 +1439,8 @@ err_input(perrdetail *err) } if (msg == NULL) msg = "unknown decode error"; - Py_DECREF(type); - Py_DECREF(value); + Py_XDECREF(type); + Py_XDECREF(value); Py_XDECREF(tb); break; } |