summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-12-18 05:29:30 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-12-18 05:29:30 (GMT)
commitdb83eb3170ebdf55bd1c1add94838a9aefa8c00b (patch)
tree7920aeced87b5649ef95344d093c2d6fb6cf5b68 /Python/pythonrun.c
parente7214a130b3fb1c4850a1e644b9e240087f6e982 (diff)
downloadcpython-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/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
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;
}