diff Python/pythonrun.c @ 35666:b8e571e6de2e legacy-trunk

- 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.
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 02 Oct 2005 01:48:49 +0000
parents e48fcd4c358d
children 1c4d192f1568
line wrap: on
line diff
--- a/Python/pythonrun.c	Sat Oct 01 17:06:00 2005 +0000
+++ b/Python/pythonrun.c	Sun Oct 02 01:48:49 2005 +0000
@@ -1487,7 +1487,7 @@
 			msg = "unknown decode error";
 		Py_DECREF(type);
 		Py_DECREF(value);
-		Py_DECREF(tb);
+		Py_XDECREF(tb);
 		break;
 	}
 	case E_LINECONT: