summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-10-02 01:48:49 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2005-10-02 01:48:49 +0000
commit9b77c03453bdb9b3eb8cdfa1d2885653d56d770b (patch)
tree4678cb76865216f361034e502a5e911d4fc183f7 /Python/pythonrun.c
parente4f83c1d7c69e4141061aaf36063da0e229514ed (diff)
downloadcpython-9b77c03453bdb9b3eb8cdfa1d2885653d56d770b.tar.gz
- Fix segfault with invalid coding.
- SF Bug #772896, unknown encoding results in MemoryError, which is not helpful I will only backport the segfault fix. I'll let Anthony decide if he wants the other changes backported. I will do the backport if asked.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 68948fc34c..e007f98a9b 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1487,7 +1487,7 @@ err_input(perrdetail *err)
msg = "unknown decode error";
Py_DECREF(type);
Py_DECREF(value);
- Py_DECREF(tb);
+ Py_XDECREF(tb);
break;
}
case E_LINECONT: