Commit c47bceca authored by Stefan Behnel's avatar Stefan Behnel

Fix refleak in a rare error case.

parent 3bba77a2
...@@ -494,6 +494,7 @@ static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef * ...@@ -494,6 +494,7 @@ static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *
break; break;
default: default:
PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction"); PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
Py_DECREF(op);
return NULL; return NULL;
} }
#endif #endif
......
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