Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e051a2 commit c0e11a3Copy full SHA for c0e11a3
1 file changed
Parser/pegen.c
@@ -690,7 +690,10 @@ _PyPegen_fill_token(Parser *p)
690
if (t->bytes == NULL) {
691
return -1;
692
}
693
- _PyArena_AddPyObject(p->arena, t->bytes);
+ if (_PyArena_AddPyObject(p->arena, t->bytes) < 0) {
694
+ Py_DECREF(t->bytes);
695
+ return -1;
696
+ }
697
698
int lineno = type == STRING ? p->tok->first_lineno : p->tok->lineno;
699
const char *line_start = type == STRING ? p->tok->multi_line_start : p->tok->line_start;
0 commit comments