gh-125010: Fix use-after-free in AST repr() (#125015)

This commit is contained in:
Tomas R. 2024-10-06 21:46:03 +02:00 committed by GitHub
parent 3fc673e97d
commit a1be83dae3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

1
Python/Python-ast.c generated
View file

@ -5809,7 +5809,6 @@ ast_repr_max_depth(AST_object *self, int depth)
if (!value_repr) {
Py_DECREF(name);
Py_DECREF(value);
goto error;
}