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