Commit e74368f3 authored by Stefan Behnel's avatar Stefan Behnel

missing DECREF in WriteUnraisable

parent 1749d805
......@@ -4579,9 +4579,12 @@ static void __Pyx_WriteUnraisable(const char *name) {
ctx = PyUnicode_FromString(name);
#endif
__Pyx_ErrRestore(old_exc, old_val, old_tb);
if (!ctx)
ctx = Py_None;
PyErr_WriteUnraisable(ctx);
if (!ctx) {
PyErr_WriteUnraisable(Py_None);
} else {
PyErr_WriteUnraisable(ctx);
Py_DECREF(ctx);
}
}
"""]
......
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