fix for 'raise' decref bug unter Python <= 2.4 in error case
authorStefan Behnel <scoder@users.berlios.de>
Sat, 16 Feb 2008 12:21:36 +0000 (13:21 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 16 Feb 2008 12:21:36 +0000 (13:21 +0100)
Cython/Compiler/Nodes.py

index 8204427cc4f7f52b15c35af41ff872cfe818cd66..942c1e4bb9ada3408873b4b0fe956a20fd372af7 100644 (file)
@@ -3544,6 +3544,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
                 Py_INCREF(type);
             }
             else {
+                type = 0;
                 PyErr_SetString(PyExc_TypeError,
                     "raise: exception must be an old-style class or instance");
                 goto raise_error;