(original) (raw)
changeset: 84692:6fb3414710ab user: Victor Stinner victor.stinner@gmail.com date: Wed Jul 17 21:51:42 2013 +0200 files: Python/ast.c description: Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL diff -r 563b27bef79f -r 6fb3414710ab Python/ast.c --- 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; /victor.stinner@gmail.com