]> granicus.if.org Git - python/commitdiff
Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value...
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Jul 2013 19:51:42 +0000 (21:51 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 17 Jul 2013 19:51:42 +0000 (21:51 +0200)
Python/ast.c

index afdb199f04ad36ae9a7fe42bbc36dd9d09662b12..f1c2347ebc0a3c85a333e5aec3bdc50769322dbd 100644 (file)
@@ -1845,7 +1845,7 @@ ast_for_atom(struct compiling *c, const node *n)
                 }
                 ast_error(c, n, buf);
                 Py_DECREF(type);
-                Py_DECREF(value);
+                Py_XDECREF(value);
                 Py_XDECREF(tback);
             }
             return NULL;