Commit 2941fbc9 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed possible NULL decrefing.

parent 3dc70e8a
...@@ -1779,7 +1779,7 @@ var_perform(VarEvent *ev) ...@@ -1779,7 +1779,7 @@ var_perform(VarEvent *ev)
PyErr_NormalizeException(&exc, &val, &tb); PyErr_NormalizeException(&exc, &val, &tb);
*(ev->exc_type) = exc; *(ev->exc_type) = exc;
*(ev->exc_val) = val; *(ev->exc_val) = val;
Py_DECREF(tb); Py_XDECREF(tb);
} }
} }
......
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