◐ Shell
clean mode source ↗

[3.9] bpo-43779: Fix possible refleak involving _PyArena_AddPyObject (GH-25289). by erlend-aasland · Pull Request #25294 · python/cpython

Expand Up @@ -639,7 +639,10 @@ _PyPegen_fill_token(Parser *p) if (t->bytes == NULL) { return -1; } PyArena_AddPyObject(p->arena, t->bytes); if (PyArena_AddPyObject(p->arena, t->bytes) < 0) { Py_DECREF(t->bytes); return -1; }
int lineno = type == STRING ? p->tok->first_lineno : p->tok->lineno; const char *line_start = type == STRING ? p->tok->multi_line_start : p->tok->line_start; Expand Down