summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-10-02 01:48:49 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-10-02 01:48:49 (GMT)
commit40d37814166380b0fb585f818b446159cfbcec0f (patch)
tree80082c1713d2e7951b29b928e57ece73d3a4883b /Python/pythonrun.c
parentd45014b236f5a8707c104bb5b47bbb006e3bd4f3 (diff)
downloadcpython-40d37814166380b0fb585f818b446159cfbcec0f.zip
cpython-40d37814166380b0fb585f818b446159cfbcec0f.tar.gz
cpython-40d37814166380b0fb585f818b446159cfbcec0f.tar.bz2
- 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 68948fc..e007f98 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: