diff Python/ast.c @ 84692:6fb3414710ab

Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL
author Victor Stinner <victor.stinner@gmail.com>
date Wed, 17 Jul 2013 21:51:42 +0200
parents 8c1ca6720246
children 96d817f41c4c
line wrap: on
line diff
--- a/Python/ast.c	Wed Jul 17 21:50:21 2013 +0200
+++ b/Python/ast.c	Wed Jul 17 21:51:42 2013 +0200
@@ -1845,7 +1845,7 @@
                 }
                 ast_error(c, n, buf);
                 Py_DECREF(type);
-                Py_DECREF(value);
+                Py_XDECREF(value);
                 Py_XDECREF(tback);
             }
             return NULL;