From: Stefan Behnel Date: Sat, 16 Feb 2008 12:21:36 +0000 (+0100) Subject: fix for 'raise' decref bug unter Python <= 2.4 in error case X-Git-Tag: 0.9.6.14~29^2~22^2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=46e515eab25e91e7532deb2219576739b402cd55;p=cython.git fix for 'raise' decref bug unter Python <= 2.4 in error case --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 8204427c..942c1e4b 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -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;