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

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


https://hg.python.org/cpython/rev/27af988f5623
changeset:   104768:27af988f5623
branch:      2.7
parent:      104759:8a564ab1d208
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
@@ -1874,7 +1874,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