summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-28 09:14:34 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-28 09:14:34 (GMT)
commit3ec5f421c58e2785edbb8ee3e4a575491bb0e7c2 (patch)
tree31bf6ec6b6824ebf9935af7be9a9e06f58e574ed /Modules/_tkinter.c
parent7865dfff2e3408948bada0034ec1d3d29f655cc1 (diff)
downloadcpython-3ec5f421c58e2785edbb8ee3e4a575491bb0e7c2.zip
cpython-3ec5f421c58e2785edbb8ee3e4a575491bb0e7c2.tar.gz
cpython-3ec5f421c58e2785edbb8ee3e4a575491bb0e7c2.tar.bz2
Fixed possible NULL decrefing.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 316f932..163c87f 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -1779,7 +1779,7 @@ var_perform(VarEvent *ev)
PyErr_NormalizeException(&exc, &val, &tb);
*(ev->exc_type) = exc;
*(ev->exc_val) = val;
- Py_DECREF(tb);
+ Py_XDECREF(tb);
}
}