From 46e515eab25e91e7532deb2219576739b402cd55 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 16 Feb 2008 13:21:36 +0100 Subject: [PATCH] fix for 'raise' decref bug unter Python <= 2.4 in error case --- Cython/Compiler/Nodes.py | 1 + 1 file changed, 1 insertion(+) 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; -- 2.26.2