Commit 46e515ea authored by Stefan Behnel's avatar Stefan Behnel

fix for 'raise' decref bug unter Python <= 2.4 in error case

parent 584da2d8
...@@ -3544,6 +3544,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) { ...@@ -3544,6 +3544,7 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
Py_INCREF(type); Py_INCREF(type);
} }
else { else {
type = 0;
PyErr_SetString(PyExc_TypeError, PyErr_SetString(PyExc_TypeError,
"raise: exception must be an old-style class or instance"); "raise: exception must be an old-style class or instance");
goto raise_error; goto raise_error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment