mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL
This commit is contained in:
parent
764a46d2ed
commit
0fae8f9083
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue