[Python-checkins] cpython: Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set

victor.stinner python-checkins at python.org
Wed Jul 17 22:11:52 CEST 2013


http://hg.python.org/cpython/rev/6fb3414710ab
changeset:   84692:6fb3414710ab
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jul 17 21:51:42 2013 +0200
summary:
  Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL

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


diff --git a/Python/ast.c b/Python/ast.c
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1845,7 +1845,7 @@
                 }
                 ast_error(c, n, buf);
                 Py_DECREF(type);
-                Py_DECREF(value);
+                Py_XDECREF(value);
                 Py_XDECREF(tback);
             }
             return NULL;

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


More information about the Python-checkins mailing list