Commit 0fae8f90 authored by Victor Stinner's avatar Victor Stinner

Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL

parent 764a46d2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment