diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 21f063d20aa..3e96aa0cd50 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1777,7 +1777,7 @@ var_perform(VarEvent *ev) PyErr_NormalizeException(&exc, &val, &tb); *(ev->exc_type) = exc; *(ev->exc_val) = val; - Py_DECREF(tb); + Py_XDECREF(tb); } }