diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-17 19:51:42 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-17 19:51:42 (GMT) |
commit | 0fae8f9083c9d362611b71b181dcec9d6af394e2 (patch) | |
tree | 2012c4a63570955b0bfd44c3cfb5db552f269d64 /Python | |
parent | 764a46d2ed3a70b67be58ac93470837e33a7ed19 (diff) | |
download | cpython-0fae8f9083c9d362611b71b181dcec9d6af394e2.zip cpython-0fae8f9083c9d362611b71b181dcec9d6af394e2.tar.gz cpython-0fae8f9083c9d362611b71b181dcec9d6af394e2.tar.bz2 |
Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL
Diffstat (limited to 'Python')
-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 afdb199..f1c2347 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; |