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
|
@ -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…
Reference in New Issue