diff Python/pythonrun.c @ 36078:1ff4790b7605 legacy-trunk

Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter. Needs backport.
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 18 Dec 2005 05:29:30 +0000
parents ea083efdc96c
children 7fdc639bc5b4
line wrap: on
line diff
--- a/Python/pythonrun.c	Sun Dec 18 05:03:17 2005 +0000
+++ b/Python/pythonrun.c	Sun Dec 18 05:29:30 2005 +0000
@@ -1439,8 +1439,8 @@
 		}
 		if (msg == NULL)
 			msg = "unknown decode error";
-		Py_DECREF(type);
-		Py_DECREF(value);
+		Py_XDECREF(type);
+		Py_XDECREF(value);
 		Py_XDECREF(tb);
 		break;
 	}