mirror of
https://github.com/python/cpython.git
synced 2026-05-06 12:49:07 -04:00
gh-125010: Fix use-after-free in AST repr() (#125015)
This commit is contained in:
Generated
-1
@@ -5809,7 +5809,6 @@ ast_repr_max_depth(AST_object *self, int depth)
|
||||
|
||||
if (!value_repr) {
|
||||
Py_DECREF(name);
|
||||
Py_DECREF(value);
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user