diff Python/pythonrun.c @ 35667:6c3d0a0c1956 2.4

Backported: Fix segfault with invalid coding. (See SF bug: 772896 for another fix)
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 02 Oct 2005 01:51:56 +0000
parents 37fa7b6dca9b
children bc4fbbb2db30
line wrap: on
line diff
--- a/Python/pythonrun.c	Sat Oct 01 16:32:40 2005 +0000
+++ b/Python/pythonrun.c	Sun Oct 02 01:51:56 2005 +0000
@@ -1484,7 +1484,7 @@
 			msg = "unknown decode error";
 		Py_DECREF(type);
 		Py_DECREF(value);
-		Py_DECREF(tb);
+		Py_XDECREF(tb);
 		break;
 	}
 	default: