From: Victor Stinner Date: Wed, 17 Jul 2013 19:51:42 +0000 (+0200) Subject: Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value... X-Git-Tag: v3.4.0a1~167 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fae8f9083c9d362611b71b181dcec9d6af394e2;p=thirdparty%2FPython%2Fcpython.git Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL --- diff --git a/Python/ast.c b/Python/ast.c index afdb199f04ad..f1c2347ebc0a 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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;