diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-17 21:51:42 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-17 21:51:42 +0200 |
commit | 0fae8f9083c9d362611b71b181dcec9d6af394e2 (patch) | |
tree | 2012c4a63570955b0bfd44c3cfb5db552f269d64 /Python/ast.c | |
parent | 764a46d2ed3a70b67be58ac93470837e33a7ed19 (diff) | |
download | cpython-git-0fae8f9083c9d362611b71b181dcec9d6af394e2.tar.gz |
Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index afdb199f04..f1c2347ebc 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; |