[Python-checkins] cpython (3.5): Fixed possible NULL decrefing.

serhiy.storchaka python-checkins at python.org
Fri Oct 28 05:22:26 EDT 2016


https://hg.python.org/cpython/rev/695cea018ba9
changeset:   104767:695cea018ba9
branch:      3.5
parent:      104764:655510dd46fd
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Fri Oct 28 12:14:34 2016 +0300
summary:
  Fixed possible NULL decrefing.

files:
  Modules/_tkinter.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -1779,7 +1779,7 @@
         PyErr_NormalizeException(&exc, &val, &tb);
         *(ev->exc_type) = exc;
         *(ev->exc_val) = val;
-        Py_DECREF(tb);
+        Py_XDECREF(tb);
     }
 
 }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list